输入两个整数:
int x,y;
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter x and y:");
x=(new Integer(in.readLine())).intValue();
y=(new Integer(in.readLine())).intValue();
int x,y;
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter x and y:");
x=(new Integer(in.readLine())).intValue();
y=(new Integer(in.readLine())).intValue();