ArrayList a = . . . Collections.sort(a);
public interface Comparable { int compareTo(Object other); }