常用方法:
Collections.addAll(Collection c,T element1,element2…..):向集合中添加一些元素
Collections.shuffle(List<?> list):打乱集合顺序
Collections.sort(List
Collections.sort(List
可以用匿名内部类创建否则就要在student里面重写compare方法
必须实现comparable接口(泛型的高级应用)
必须是comparable的子类和comparable
让时间为你证明