/为什么输不出正确的int型?求答复!谢谢!
import *;public class Hello
{
public static void main(String [] args)
{
DataInputStream d
= new DataInputStream(new BufferedInputStream(System.in));
int s;
try{
s = d.readInt();
System.out.println(s);
int b = d.readInt();
System.out.println(b);
int sum = s + b;
System.out.println(sum);
}catch(IOException e)
{
e.printStackTrace();
}
}
}