알고리즘/Java 문법 암기 (3) 썸네일형 리스트형 Integer MAX, MIN 선언하기 dp[i] = Integer.MAX_VALUE; 배열 같은 값으로 채우기 Arrays.fill() int ans[] = new int[n];Arrays.fill(ans, 1); 리스트의 리스트 선언하기와 원시타입 배열 리스트로 변환하기 리스트의 리스트 선언하기List> ans = new ArrayList>(); 원시타입 배열을 리스트로 변환하는 법 (Java8 이상)Arrays.stream(arr).boxed().collect(Collectors.toList()); 이전 1 다음