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

Method test

collectiontopics/QueueBehavior.java:16–22  ·  view source on GitHub ↗
(int id, Queue<String> queue)

Source from the content-addressed store, hash-verified

14 "eight nine ten").split(" "));
15 }
16 static void test(int id, Queue<String> queue) {
17 System.out.print(id + ": ");
18 strings().map(queue::offer).count();
19 while(queue.peek() != null)
20 System.out.print(queue.remove() + " ");
21 System.out.println();
22 }
23 public static void main(String[] args) {
24 int count = 10;
25 test(1, new LinkedList<>());

Callers 1

mainMethod · 0.95

Calls 5

stringsMethod · 0.95
printMethod · 0.80
peekMethod · 0.80
countMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected