代码改变世界

随笔分类 -  java

android Collections.sort(List<T> list) 与JAVA Collections.sort(List<T> list)

2012-05-04 10:31 by java20130722, 533 阅读, 收藏,
摘要: Info.java :public class Info implements Cloneable, Comparable{ private int id ; public Info(int id ){ this.id = id ; } public int getId() { return id; } @Override public Object clone() throws CloneNotSupportedException { Info info = (Info) super.clone(); return info; } @Override public ... 阅读全文