基本用法:
Scanner sc = new Scanner(System.in); //创建Scanner对象。Scanner为类,sc是自己命名的,可任意。System.out.println("请输入你的数据……");double height = sc.nextDouble(); //接收数据。System.out.println("你输入的数据是:"+height);