摘要: Scanner类 我们可以通过Scanner类来获取用户的输入 基本语法: Scanner scanner=new Scanner(System.in); 通过Scanner 类的next()或nextLine()方法获取输入的字符串,在读取前,要使用hasNext()或hasNextLine()判 阅读全文
posted @ 2020-09-19 16:10 Gemin_Chang 阅读(204) 评论(0) 推荐(0)