摘要:
To implement such a class, we should firstly implement one method named compareTo()(int). We have better implement (int)hashCode() and equals() (boolean) to make sure that the same object returns the same hash code.After that, we may use Array.sort() or Collections.sort to rank, or even can apply in 阅读全文
posted @ 2013-04-23 11:17 Xiaohan S. 阅读(122) 评论(0) 推荐(0)
浙公网安备 33010602011771号