Scanner类 可获取用户的输入
基本语法:Scanner s = new Scanner(System.in);
通过Scanner 类的next()与nextLine()方法获取用户输入的字符串,在读取前我们一般需要使用hasNext()与NextLine()判断是否还有数据的输入