摘要:
用BufferedInputStream解决 1 Scanner scanner = new Scanner(new BufferedInputStream(System.in)); 2 System.out.println("---Please input 3 integers like this: 1 2 3---"); 3 int count = 0; 4 int[] container = new int[3]; 5 while (scanner.hasNextInt()) { 6 container[count++] = scanner.nextInt(); 7 阅读全文
posted @ 2014-01-08 15:17
rldts
阅读(350)
评论(0)
推荐(0)
浙公网安备 33010602011771号