1. 스트림을 사용하는 흐름스트림 생성 ex) stream()중간 연산 ex) filter(), map()종단 연산 ex) toList()Java 스트림은 스트림을 생성한 뒤 원하는 연산을 수행하고 결과를 컬렉션으로 반환하는 방식으로 사용된다.스트림을 한번이라도 사용해보았다면 익숙한 내용이다. 아래 예제를 살펴보자public List getMostPopularCategories(int n) { return countBooksByCategory().entrySet().stream() // 스트림 생성 .sorted(Comparator.comparingLong(Map.Entry::getValue).reversed()) .map(Map.Entr..