//导入 scanner的包
import java.util.Scanner;
Scanner scanner = new Scanner(System.in);
System.out.println("请输入数据");
int num = scanner.nextInt();
System.out.println("你输入的数据是:"+num);
//导入 scanner的包
import java.util.Scanner;
Scanner scanner = new Scanner(System.in);
System.out.println("请输入数据");
int num = scanner.nextInt();
System.out.println("你输入的数据是:"+num);