자바 배열에서 stream으로 최대값
배열.스트림() 기본 배열을 스트림 IntStream으로 변환 최대() 결과를 선택적 개체로 반환합니다. getAsInt() int 값을 반환합니다. 최대값이 없는 경우 NoSuchElementException 예외가 발생할 수 있습니다. int() side = new int(){1, 2, 3}; int max_value = Arrays.stream(side) .max() .getAsInt(); System.out.println(max_value);