未验证 提交 12fd03e7 编写于 作者: S SnailClimb 提交者: GitHub

Merge pull request #782 from Fuge2015/master

fix a bug: compareTo implement.
......@@ -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.
先完成此消息的编辑!
想要评论请 注册