提交 f23b71ec 编写于 作者: D dongfu

fix a bug: compareTo implement.

上级 e44f9a4f
......@@ -384,10 +384,11 @@ public class Person implements Comparable<Person> {
// TODO Auto-generated method stub
if (this.age > o.getAge()) {
return 1;
} else if (this.age < o.getAge()) {
}
if (this.age < o.getAge()) {
return -1;
}
return age;
return 0;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册