zxck03051
@zxck030512947
Reviews Written
-
Average Rating
-
Posts
Q&A
steam api ์์ git ์ฃผ์
https://github.com/whiteship/java8/commit/12dcce9888bbb6dfbe002788d34a1485cbf4a9e6 ๊ฐ์ ์๋ฃ์์ git history ๋ณด์๋ฉด ์์ต๋๋ค ใ ใ
- 3
- 1
- 772
Q&A
Comparator interface๋ฅผ compareToIgnoreCase๋ก ๋ฉ์๋ ๋ ํผ๋ฐ์ค๋ก ๋ณ๊ฒฝ ๊ด๋ จ
ใ ใ ์์ง ์ดํด๋ฅผ ์ ๋ชป ํ๋๋ฐ์, Arrays.sort(names, String::compareToIgnoreCase); ์ด๋ ๊ฒ ํ๋ฉด String::compareToIgnoreCase์์ ๋ด๋ถ์ ์ผ๋ก ๋ฐ๋ ํ๋ผ๋ฏธํฐ this๋ "keesun", "whiteshipe", "toby"๋ฅผ ์์๋๋ก ๋ฐ๊ณ str์ "whiteship", "toby" ์์ผ๋ก ๋ฐ์์ ๋น๊ตํ๊ฒ ๋๋๊ฑด๊ฐ์? (์ฌ์ง) String::compareToIgnoreCase๋ (x,y) -> x.compareToIgnoreCase(y)์ ๊ฐ๋ค๊ณ ํ์ จ๋๋ฐ์, "keesun".compareToIgnoreCase("whteship")์ ๋น๊ตํด์ true , false ๋ฐํ, "whteship".compareToIgnoreCase("toby")์ ๋น๊ตํด์ true , false ๋ฐํ, ํ๋ ๋ฐฉ์์ด ๋ง๋์? ๋๋ฒ๊น ์ ํด๋ณด๋ ค๊ณ ์๋ํ๋๋ฐ, ๋ฐฐ์ด ์์ ๋ฌธ์์ด์ด ๋์ค๋๊ฒ ์๋๋ผ ~.class๋ก ๋์์ ํ์ ์ ๋ชป ํ์ต๋๋ค ใ ใ ์ด๋ด ๋๋ ์ด๋ป๊ฒ ๋๋ฒ๊น ์ ํ๊ณ ์ถ๋ก ํ๋์..? (์ฌ์ง)
- 4
- 8
- 742




