/*
* 集合的工具类(Collections):
* 笔试题:说出Collection与Collections的区别?
* 1.Collection是一个单列集合的跟接口,Collections是操作集合对象的一个工具类
* Collections常见方法:
* 1.对list进行排序:
* sort(List<T> list)
* sort(List<T> list, Comparator c)
* 2.对list进行二分查找:
* binarySearch(List<? extends Comparable<? super T>> list, T key)
* binarySearch(List<? extends T> list, T key, Comparator<? super T> c)
* 3.对集合取最大值或最小值
* max(Collection<? extends T> coll)
* max(Collection<? extends T> coll, Comparator<? super T> comp)
* min(Collection<? extends T> coll)
* min(Collection<? extends T> coll, Comparator<? super T> comp)
* 4.对list集合进行反转
* reverse(List<?> list
* 5.可以将不同步的集合变成同步的集合
* synchronizedCollection(Collection<T> c)
* synchronizedList(List<T> list)
* synchronizedMap(Map<K,V> m)
* synchronizedSet(Set<T> s)
*
* 集合的工具类(Collections):
* 笔试题:说出Collection与Collections的区别?
* 1.Collection是一个单列集合的跟接口,Collections是操作集合对象的一个工具类
* Collections常见方法:
* 1.对list进行排序:
* sort(List<T> list)
* sort(List<T> list, Comparator c)
* 2.对list进行二分查找:
* binarySearch(List<? extends Comparable<? super T>> list, T key)
* binarySearch(List<? extends T> list, T key, Comparator<? super T> c)
* 3.对集合取最大值或最小值
* max(Collection<? extends T> coll)
* max(Collection<? extends T> coll, Comparator<? super T> comp)
* min(Collection<? extends T> coll)
* min(Collection<? extends T> coll, Comparator<? super T> comp)
* 4.对list集合进行反转
* reverse(List<?> list
* 5.可以将不同步的集合变成同步的集合
* synchronizedCollection(Collection<T> c)
* synchronizedList(List<T> list)
* synchronizedMap(Map<K,V> m)
* synchronizedSet(Set<T> s)
*
* */
/*
* 数组的工具类(Arrays)
* 1.复制数组:
* copyOf(boolean[] original, int newLength)
* original: 源数组
* newLength: 新数组长度
*
* 2.复制部分数组
* copyOfRange
* 3.比较两个数组是否相同
* equals(int[],int[])
* 4.将数组变成集合
* List aslist(T[])
*
* */