摘要: Arrays.sort() & Collections.sort() Collections 是集合的工具类,Collections.sort用于对象集合按照用户自定义的规则进行排序(常用于对list进行排序) Arrays.sort 可以用于对象数组按照用户自定义规则排序。 eg: 本题中将字符串 阅读全文
posted @ 2017-11-19 12:27 nina阿瑶 阅读(586) 评论(0) 推荐(0) 编辑