Java tutorial
//package com.java2s; import java.util.Arrays; public class Main { public static boolean arrayEquals(Object[] a1, Object[] a2) { return Arrays.equals(a1, a2); } }