unmodifiableList (1) 썸네일형 리스트형 java.lang.UnsupportedOperationException 발생 케이스 jdk17 버전부터 Stream 연산 후 결과를 Stream.toList() 로 return 할 수 있는데요public class UnsupportedOperationExceptionTest { @Test void unsupportedOperationExceptionTest() { Stream stream = Stream.builder() .add("ccc") .add("aaa") .add("bbb") .build(); List list = stream.toList(); Collections.so.. 이전 1 다음