new Scanner(System.in)//alt+回车补齐 int a = scanner.nextInt();
hasNext()不能接收回车或者空格,更常用的是hasNextLine()
hasNext()及hasNextLine()是boolean类型(1位)
scanner.next是String类型
scanner(名字).close 用完关闭