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

Method test

streams/FunctionMap.java:14–20  ·  view source on GitHub ↗
(String descr, Function<String, String> func)

Source from the content-addressed store, hash-verified

12 return Arrays.stream(elements);
13 }
14 static void
15 test(String descr, Function<String, String> func) {
16 System.out.println(" ---( " + descr + " )---");
17 testStream()
18 .map(func)
19 .forEach(System.out::println);
20 }
21 public static void main(String[] args) {
22
23 test("add brackets", s -> "[" + s + "]");

Callers 1

mainMethod · 0.95

Calls 1

testStreamMethod · 0.95

Tested by

no test coverage detected