import java.io.*;
public class IntOut{
public static void main(String[] args) throws IOException{
int a, b;
String str1 = "";
byte[] buf =new byte[100];
System.out.print("Please Input number1:");
System.in.read(buf);
str1 = new String(buf);
a = Integer.parseInt(str1.trim());
System.out.print("Please Input number2:");
System.in.read(buf);
str1 = new String(buf);
b = Integer.parseInt(str1.trim());
System.in.close();
System.out.println("Result :" + (a + b));
}
}
public class IntOut{
public static void main(String[] args) throws IOException{
int a, b;
String str1 = "";
byte[] buf =new byte[100];
System.out.print("Please Input number1:");
System.in.read(buf);
str1 = new String(buf);
a = Integer.parseInt(str1.trim());
System.out.print("Please Input number2:");
System.in.read(buf);
str1 = new String(buf);
b = Integer.parseInt(str1.trim());
System.in.close();
System.out.println("Result :" + (a + b));
}
}