摘要: ###问题 先用nextInt()再用nextLine()不会有接收字符串的效果。错误示范代码如下: Scanner sc = new Scanner(System.in); System.out.println("请输入学生年龄:"); int age = sc.nextInt(); System 阅读全文
posted @ 2021-12-22 11:23 郑国荣 阅读(385) 评论(1) 推荐(0) 编辑