MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / main

Method main

Programs/JavaStreams.java:32–47  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

30
31 //print out the origin lists, and then the changed lists
32 public static void main(String[] args) {
33 System.out.println("The unsorted array is: "
34 + numbers);
35
36 System.out.println("The sorted array is: "
37 + numbers.stream().sorted().toList());
38
39 System.out.println("All numbers in the list greater than 10: "
40 + findAllNumbersGreaterThanTen(numbers));
41
42 System.out.println();
43
44 System.out.println("A list of words: " + words);
45 System.out.println("All words in the list that contain the letter A: "
46 + findAllWordsThatContainLetterA(words));
47 }
48}

Callers

nothing calls this directly

Tested by

no test coverage detected