摘要: Scanner s = new Scanner(System.in); int choice = 0; if(s.hasNextInt()) { choice = s.nextInt(); } s.close();//关闭scanner 阅读全文
posted @ 2017-03-10 10:33 爱简单的Paul 阅读(1427) 评论(0) 推荐(0) 编辑