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

Method strings

collectiontopics/QueueBehavior.java:11–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10public class QueueBehavior {
11 static Stream<String> strings() {
12 return Arrays.stream(
13 ("one two three four five six seven " +
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();

Callers 1

testMethod · 0.95

Calls 2

splitMethod · 0.80
streamMethod · 0.45

Tested by

no test coverage detected