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

Method main

streams/Informational.java:9–21  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

7
8public class Informational {
9 public static void
10 main(String[] args) throws Exception {
11 System.out.println(
12 FileToWords.stream("Cheese.dat").count());
13 System.out.println(
14 FileToWords.stream("Cheese.dat")
15 .min(String.CASE_INSENSITIVE_ORDER)
16 .orElse("NONE"));
17 System.out.println(
18 FileToWords.stream("Cheese.dat")
19 .max(String.CASE_INSENSITIVE_ORDER)
20 .orElse("NONE"));
21 }
22}
23/* Output:
2432

Callers

nothing calls this directly

Calls 4

streamMethod · 0.95
orElseMethod · 0.80
maxMethod · 0.65
countMethod · 0.45

Tested by

no test coverage detected