import java.util.*;
public class Text {
public static void main(String[] args) {
System.out.println("请输入两个数:a,b");
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
System.out.println("a+b="+(a+b));
}
}
------解决方案-------------------- BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); int a = reader.read(); int b = reader.read();
------解决方案--------------------