
📍 스트림 API 시작스트림이란 데이터들이 흘러가면서 필터되고, 매핑된다. 그래서 마치 데이터가 물 흐 르듯이 흘러간다는 느낌을 받았을 것이다.참고로 흐르는 좁은 시냇물을 영어로 스트림이라 한다.import java.util.List;public class StreamStartMain { public static void main(String[] args) { List names = List.of("Apple", "Banana", "Berry", "Tomato"); // 스트림을 이용한 필터링 + 대문자 변환 + 수집 List result = names.stream() .filter(name -> name.startsWith("B")..