range() rangeClosed() 차이

자바8에 추가된 API로 원시 데이터 형 int와 long를 스트림으로 다룰 수 있도록 해준다. public static IntStream range(int startInclusive, int endExclusive) { ... } public static IntStream rangeClosed(int startInclusive, ...