摘要: ##Scnner 类可以用来获取用户的输入 基本语法 Scanner s = new Scanner(System.in); 通过Scanner 类的 next() 与 nextLine() 方法获取字符串,在读取之前我们需要用 hasNext() 与 hasNextLine() 判断是否还有输入数 阅读全文
posted @ 2022-07-12 13:54 Dalier-! 阅读(36) 评论(0) 推荐(0)