Comparator 인터페이스 와 Comparable 인터페이스 Comparator 인터페이스 와 Comparable 인터페이스 Comparable 인터페이스 객체의 비교를 위한 인터페이스로 객체간에 순서나 정렬을 하기 우해서 Comparable 인터페이스를 구현해야 한다.구현하는 방법은 Comparable 인터페이스를 객체비교를 구현할 클래스에 implements (상속)하고,int compareTo(T o) 메소드.. Java 2013.07.25