java.util.Arrays主要的方法

1. public static <T> List<T> asList(T... a)

List<String> stooges = Arrays.asList("Larry", "Moe", "Curly");

2.public static int hashCode(long[] a)

3.public static String toString(long[] a)

4.public static int deepHashCode(Object[] a)

5.public static short[] copyOfRange(short[] original,int from, int to)

6. public static double[] copyOf(double[] original, int newLength)

7.public static void fill(Object[] a, int fromIndex, int toIndex, Object val)

8. public static void fill(Object[] a, Object val)

9. public static boolean equals(float[] a, float[] a2)

   new Float(f1).equals(new Float(f2))

10.  public static int binarySearch(Object[] a, Object key)

11. public static int binarySearch(Object[] a, int fromIndex, int toIndex, Object key)

 

posted @ 2016-10-09 12:29  天空中的蜂蜂  阅读(160)  评论(0编辑  收藏  举报