Java当中自定义排序函数
摘要:
一、实现Comparator接口方法类似Merge two sorted list中介绍的,包括了有名类和匿名类两种方式具体使用:排序:Collections.sort(容器,comparator)Queue q = new PriorityQueue(capacity,comparator)二、c... 阅读全文
posted @ 2015-06-16 09:04 F_G 阅读(755) 评论(0) 推荐(0) 编辑