Here you can find the source of areEqual(boolean[] a, boolean[] b)
public static boolean areEqual(boolean[] a, boolean[] b)
//package com.java2s; public class Main { public static boolean areEqual(boolean[] a, boolean[] b) { if (a == b) { return true; }/*w w w . j av a2 s . co m*/ if (a == null || b == null) { return false; } if (a.length != b.length) { return false; } for (int i = 0; i != a.length; i++) { if (a[i] != b[i]) { return false; } } return true; } public static boolean areEqual(byte[] a, byte[] b) { if (a == b) { return true; } if (a == null || b == null) { return false; } if (a.length != b.length) { return false; } for (int i = 0; i != a.length; i++) { if (a[i] != b[i]) { return false; } } return true; } public static boolean areEqual(int[] a, int[] b) { if (a == b) { return true; } if (a == null || b == null) { return false; } if (a.length != b.length) { return false; } for (int i = 0; i != a.length; i++) { if (a[i] != b[i]) { return false; } } return true; } }