compareTo() 구현
package first; import java.util.ArrayList;import java.util.Collections;import java.util.List; public class CompareToTest {public static void main(String[] args) {Car c1 = new Car("페라리",5000);Car c2 = new Car("산타페",3000);Car c3 = new Car("그랜저",4000);List carList = new ArrayList();carList.add(c1);carList.add(c2);carList.add(c3);System.out.println(carList);Collections.sort(carList);System.out.print..