Stream<BigInteger> natual = Stream.generate(new Supplier<>() { private BigInteger n = BigInteger.ZERO; @Override public BigInteger get() { BigInteger result = n; n = n.add(BigInteger.ONE); return result; } }); natual.limit(20).forEach(System.out::println);
Sign in to make a reply
祈祷明天对你也是美好的