### Question:
Arrays { public static <T> int hashCode(T[] array) { if (array == null) { return 0; } int hashCodeValue = 1; for (T element : array) { int elementHashCode; if (element == null) { elementHashCode = 0; } else { elementHashCode = element.hashCode(); } hashCodeValue = 31 * hashCodeValue + elementHashCode; } return hashCodeValue; } private  Arrays(); static int binarySearch(T[] array, T object, Comparator<T> comparator); static int binarySearch(T[] array, int startIndex, int endIndex, T object, Comparator<T> comparator); static void fill(T[] array, T value); static void fill(T[] array, int start, int end, T value); static int hashCode(T[] array); static boolean equals(T[] array1, T[] array2); static void sort(T[] array, int start, int end, Comparator<T> comparator); static void sort(T[] array, Comparator<T> comparator); static String toString(T[] array);  }### Answer:
@Test public void test_hashCode_Ljava_lang_Object() { int listHashCode; int arrayHashCode; Object[] objectArr = {BoxedInteger.valueOf(1), "abc", null}; ArrayList<Object> listOfObject = new ArrayList<Object>(); for (int i = 0; i < objectArr.length; i++) { listOfObject.add(objectArr[i]); } listHashCode = listOfObject.hashCode(); arrayHashCode = Arrays.hashCode(objectArr); assertEquals(listHashCode, arrayHashCode); }