摘要: scanner.nextInt() 读前不读后,不会自动消除后面的换行。 所以如果想读取scanner.nextInt()之后的另一行,先用一个scanner.nextLine()清掉换行符。 阅读全文