var infinite = Stream.iterate(1, x -> x + 1); infinite.filter(x -> x % 2 1) .limit(5) .forEach(System.out::print); // 13579 The source is still an infinite ...
確定! 回上一頁