Comparable이란?자바의 Comparable 인터페이스는 객체를 정렬 가능한 객체로 만들어주는 인터페이스입니다.이를 통해 특정 객체들이 자연 순서를 정의하고 이를 기반으로 정렬될 수 있게 합니다.Comparable 인터페이스를 구현하는 클래스는 compareTo 메소드를 오버라이드하여 그 객체의 순서를 지정합니다. Comparable 인터페이스 사용법정렬하고자 하는 객체에 Comparable 인터페이스를 구현하면 됩니다.public class Person implements Comparable { private String name; private Integer birthYear; public Person(String name, Integer birthYear) { ..