Collections中集合的工具方法

Collections集合的工具方法: 1)-public static boolean addAll(Collection c,T…elements); 2)-public static void shuffle(List list); //打乱集合中元素的顺序 3)public static void sort(List); 使用前提: 被排序的集合里面存储的元素必须实现:Comparable
相关文章
相关标签/搜索