📜  scanner.nextInt 流 api java 代码示例

📅  最后修改于: 2022-03-11 14:52:34.440000             🧑  作者: Mango

代码示例3
int[] numbers = IntStream.generate(() -> scan.nextInt()).limit(N).toArray();