Here you can find the source of arraysEquals(Object[] mThis, Object[] mThat)
private static boolean arraysEquals(Object[] mThis, Object[] mThat)
//package com.java2s; public class Main { private static boolean arraysEquals(Object[] mThis, Object[] mThat) { if (mThis.length == mThat.length) { for (int i = 0; i < mThis.length; i++) { if (!((mThis[i] == null) && (mThat[i] == null))) { if ((mThis[i] == null) || (mThat[i] == null) || (!mThis[i].equals(mThat[i]))) { return false; }/*from www . java2s. com*/ } } return true; } else { return false; } } }