Here you can find the source of equals(int[] a, int[] b)
public static boolean equals(int[] a, int[] b)
//package com.java2s; //License from project: Open Source License public class Main { /**/*www . j a va2s. co m*/ * Use java.util.Arrays instead. * Check if two arrays are equal. * * @deprecated Use java.util.Arrays instead. */ public static boolean equals(int[] a, int[] b) { if (a.length != b.length) { return (false); } for (int i = 0; i < a.length; i++) { if (a[i] != b[i]) { return (false); } } return (true); } }