小白之旅16

一. Collections

概念:专门针对集合进行操作的工具类

1.1 常用方法

1、sort():升序排列

2、min():求最小值

3、max():求最大值

4、reverse():倒置

5、swap():交换

6、binarySearch():二分法搜索

7、shuffle():打乱

猜你喜欢

转载自www.cnblogs.com/demonycw/p/11329373.html