62,635
社区成员




import java.io.InputStream;
public class Hello {
public static void main(String args[]) throws Exception {
InputStream input = System.in;
StringBuffer buf = new StringBuffer();
System.out.print("请输入一个整数");
int temp = 0;
while((temp = input.read())!= -1){
char c = (char)temp;
if(c=='\n'){
break;
}
buf.append(c);
}
String str = buf.toString();
int num1 = Integer.parseInt(str);
System.out.println(num1);
input.close();
}
}