标签:system nbsp new span pre next can ann blog
Scanner s = new Scanner(System.in); int choice = 0; if(s.hasNextInt()) { choice = s.nextInt(); } s.close();//关闭scanner
标签:system nbsp new span pre next can ann blog
原文地址:http://www.cnblogs.com/simplepaul/p/6529374.html