import java.util.Scanner;
public class Test1{
public static void main(String[]args){
`Scanner in=new Scanner(System.in);
System.out.println("请输入你的名字:");
String name=in.next();
System.out.println("请输入你的年龄:");
int age=in.nextInt();
System.out.println("名字:"+name);
System.out.println("年龄:"+age); |
|