int n = 20; for(int i=0;i<n;i++) { System.out.println(i); }
int n = 20; IntStream.range(0, n).forEach(System.out::println);
int n = 20; Stream.iterate(0, x-> x+1).limit(n).forEach(System.out::println);