comparable接口是什么?怎么用?
当需要对一个对象进行排序时,那么该对象就应该实现Comparable接口,并实现其唯一的方法int compareTo(T o),当调用Arrays.sort(Object[] a)方法时则回调compareTo()方法。