freshman被IOstream搞晕了
oDon 2006-03-12 03:35:19 import java.io.*;
public class IostreamInt{
public static void main(String[] args){
int aIn;
//while(true){
try{
System.out.println("Please input a value :");
aIn = System.in.read();
System.out.println("You entered :"+ aIn);
}
catch(IOException e){
System.out.println("Error reading from user!");
}
// }
}
}
代码如上
输入98 输出 57
去掉注释 结果不堪想象...
求助dx