日期:2014-05-20 浏览次数:20739 次
Scanner sc=new Scanner(System.in);
System.out.println("姓名");
String name=sc.next();
System.out.println("年龄");
String age=sc.next();
System.out.println("工资");
String salary=sc.next();
System.out.println("地址");
String address=sc.next();
System.out.println(name);
System.out.println(Integer.parseInt(age));
System.out.println(Long.parseLong(salary));
System.out.println(address);