日期:2014-05-20 浏览次数:20709 次
System.out.println("请输入你的信息:姓名--性别--身份证号"); Scanner input_1 = new Scanner(System.in); System.out.print("name:"); String name = input_1.next(); Scanner input_2 = new Scanner(System.in); System.out.print("sex:"); String sex = input_2.next(); Scanner input_3 = new Scanner(System.in); System.out.print("id:"); int id = input_3.nextInt(); System.out.println("你输入的信息是:name:" + name + "; sex:" + sex + "; id:" + id);
------解决方案--------------------
一楼的方法是正确的//////