数据输入分三步:
一、导包
最上方导入import java.util.Scanner;
二、创建对象
Scanner 自定变量名1 = new Scanner(System.in);
三、接收数据
int 自定变量名2 = 自定变量名1.nextInt();