MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / show

Method show

streams/RandomGenerators.java:9–14  ·  view source on GitHub ↗
(Stream<T> stream)

Source from the content-addressed store, hash-verified

7
8public 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());

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected