-
stream();
-
filter();
-
map();
-
flatMap() --combine all the streams into one
-
district();
-
count();
-
limit();
-
skip();
-
findAny(), findFirst()
-
anyMatch(), allMatch(), noneMatch()
-
Arrays.stream()
- stateless: filter(), map()
- stateful: sum(), count(), sort()
- menu.stream().collect(groupingBy(Dish::getType))
- Optional max = numbers.stream().reduce(Integer::max)
- Stream lines = Files.lines(Paths.get("data.txt"), Charset.defaultCharset())