(Stream<T> stream)
| 7 | |
| 8 | public class RandomGenerators { |
| 9 | public static <T> void show(Stream<T> stream) { |
| 10 | stream |
| 11 | .limit(4) |
| 12 | .forEach(System.out::println); |
| 13 | System.out.println("++++++++"); |
| 14 | } |
| 15 | public static void main(String[] args) { |
| 16 | Random rand = new Random(47); |
| 17 | show(rand.ints().boxed()); |