日期:2014-05-20 浏览次数:20701 次
class rec implements Comparable{ int x,y; public int compareTo(Object o) { return 0; } }
public int compareTo(Object o) { rec t = (rec) o; if (this.x == o.x) { return this.y - o.y; } return this.x - o.x; }