Collections和Arrays常用方法
摘要:
Collections:常见方法: 1, 对list进行二分查找: 前提该集合一定要有序。 int binarySearch(list,key); //必须根据元素自然顺序对列表进行升级排序 //要求list 集合中的元素都是Comparable 的子类。 int binarySearch(list 阅读全文
posted @ 2016-12-31 20:35 Dev_Nick 阅读(187) 评论(0) 推荐(0) 编辑