java.util.Arrays
1、类结构
public class Arrays
2、构造方法
private Arrays() {}
3、方法
(1)
public static int binarySearch(byte[] a, int fromIndex, int toIndex,
byte key)
byte、short、int、long、float、double、char、Object
(2)复制
public static boolean[] copyOf(boolean[] original, int newLength)
public static boolean[] copyOfRange(boolean[] original, int from, int to) {
(3)equals
public static boolean equals(int[] a, int[] a2)
(4)填充
public static void fill(byte[] a, byte val) {
for (int i = 0, len = a.length; i < len; i++)
a[i] = val;
}
(5)hashCode
public static int hashCode(boolean a[])
(6)sort
public static void sort(int[] a) {
DualPivotQuicksort.sort(a, 0, a.length - 1, null, 0, 0);
}
排序
(7)toString