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

Method main

streams/Peeking.java:7–18  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

5
6class Peeking {
7 public static void
8 main(String[] args) throws Exception {
9 FileToWords.stream("Cheese.dat")
10 .skip(21)
11 .limit(4)
12 .map(w -> w + " ")
13 .peek(System.out::print)
14 .map(String::toUpperCase)
15 .peek(System.out::print)
16 .map(String::toLowerCase)
17 .forEach(System.out::print);
18 }
19}
20/* Output:
21Well WELL well it IT it s S s so SO so

Callers

nothing calls this directly

Calls 2

streamMethod · 0.95
peekMethod · 0.80

Tested by

no test coverage detected