Scanner使用步骤
导包:import java.util.Scanner
创建对象:Scanner sc = new Scanner(System.in);
接收数据:int i = sc.nextInt();