[JAVA] 자바 intersection type이 뭔지 알아보자! (with 람다)
BE/Java·2023. 12. 26.
❗️이 글을 보기 위해선 java generic(제네릭)이 선행되어야 한다. 잘 모른다면 아래 두 개의 포스트를 먼저 읽고 오는 것을 추천한다. https://suhyeon-developer.tistory.com/23 [JAVA] Generic 한 걸음 나아가기! (2) 실전편 ❗️제네릭이 뭔지 궁금하다면 이전 포스트를 참고하길 바란다. https://suhyeon-developer.tistory.com/23 s.compareTo(elem) > 0).count(); } public static void main(String[] args) { // Integer 배열에 대해 countGreaterThan 메서드 suhyeon-developer.tistory.com intersection type이 뭐야? ..