ID是给student class定义的,不是object
@Override
public int compareTo(Object o) {
// TODO Auto-generated method stub
return this.id.compareTo(o.id);
}
换成以下看看??
@Override
public int compareTo(Student o) { // <-- 看这里!!!
// TODO Auto-generated method stub
return this.id.compareTo(o.id);
}
太不清楚了把,应该把错误哪里的详细信息截下来