import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; public class t2 { /** * @param args * @throws IOException */ public static void main(String[] args) throws IOException { // TODO Auto-generated method stub //第一种输入 int a,b; BufferedReader in= new BufferedReader( new InputStreamReader (System.in )); // System.out.print("请输入第一个正数:"); // a=Integer.parseInt( in.readLine()); // System.1ut.print("请输入第二个正数:"); // b=Integer.parseInt( in.readLine()); // int sum=a+b; // System.out.println("计算结果: "+a+"+"+b+"="+sum); // 第二种输入// //---------------------------------------------------------// Scanner sc = new Scanner(System.in); int low, up; // System.out.println("请输入第一个整数:"); low = sc.nextInt(); // System.out.println("请输入第二个整数:"); up = sc.nextInt(); System.out.println(low+" "+up); } }