求助:帮帮忙,看看哪里出错了!~
import *;public class Test1 {
public static void main(String[] args)throws Exception {
try{
byte buf[] = new byte[50];
System.out.print("input:"); //输入小于100整数
int count = System.in.read(buf);
String strBuf = new String(buf,0,count);
System.out.println(strBuf);
int n=Integer.parseInt(strBuf);
System.out.println("n:"+n); //这一行,总是不能显示出来,怎么回事啊?
int m = 100/n;
System.out.println(m);/**/
}catch(Exception e){System.out.print("Error:"+e.getMessage());}
}
}