Here you can find the source of areEqualArrays(Object[] a1, Object[] a2)
public static boolean areEqualArrays(Object[] a1, Object[] a2)
//package com.java2s; /******************************************************************************* * Copyright (c) 2007 Bruno Medeiros and other Contributors. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors:/* w w w . j av a2s.co m*/ * Bruno Medeiros - initial implementation *******************************************************************************/ import java.util.Arrays; public class Main { /** @return whether the two given arrays are the same (including null) or equal * according to {@link Arrays#equals(Object[], Object[])}. */ public static boolean areEqualArrays(Object[] a1, Object[] a2) { return Arrays.equals(a1, a2); } }