import java.util.ArrayList; import java.util.Collections; //1. ArrayList public class test { //implements는 부모의 메소드를 반드시 오버라이딩(재정의)해야 한다. static class Person implements Comparable{ int n; String name; Person(int n, String name){ this.n = n; this.name = name; } @Override public int compareTo(Person o) { if(Integer.compare(this.n, o.n) == 1) { return 1; } else if(Integer.compare(this.n, o.n) == 0) ..