[JAVA] 24. ์คํธ๋ฆผ์ ์ค๊ฐ์ฐ์ฐ, Optional<T>, OptionalInt
https://hyejin.tistory.com/604 [JAVA] 23. ๋ฉ์๋ ์ฐธ์กฐ, ์คํธ๋ฆผ(Stream) 1๏ธโฃ ๋ฉ์๋ ์ฐธ์กฐ ๋๋ค์์์ ๋๋ค์์ด ํ๋์ ๋ฉ์๋๋ง ํธ์ถํ๋ ๊ฒฝ์ฐ์๋ '๋ฉ์๋ ์ฐธ์กฐ(method reference)'๋ผ๋ ๋ฐฉ๋ฒ์ผ๋ก ๋๋ค์์ ๊ฐ๋ตํ ํ ์ ์๋ค. ํด๋์ค์ด๋ฆ::๋ฉ์๋์ด๋ฆ -> Function ์ธํฐํ์ด hyejin.tistory.com 1๏ธโฃ ์คํธ๋ฆผ์ ์ค๊ฐ์ฐ์ฐ - ์คํธ๋ฆผ ์๋ฅด๊ธฐ skip(), limit() skip()๊ณผ limt()์ ์คํธ๋ฆผ์ ์ผ๋ถ๋ฅผ ์๋ผ๋ผ ๋ ์ฌ์ฉ skip(3)์ ์ฒ์ 3๊ฐ์ ์์๋ฅผ ๊ฑด๋๋ฐ๊ณ , limit(5)์ ์คํธ๋ฆผ์ ์์๋ฅผ 5๊ฐ๋ก ์ ํํ๋ค. - ์คํธ๋ฆผ์ ์์ ๊ฑธ๋ฌ๋ด๊ธฐ filter(), distinct() distinct() ๋ ์คํธ๋ฆผ์์ ์ค๋ณต๋ ์์๋ค์ ์ ๊ฑฐ..
2022.06.06