深入比较两个布尔数组
//package com.nowjava; /* 时 代 Java 公 众 号 - nowjava.com 提 供 */ public class Main { /** * Compares the two boolean arrays deeply * @param array1 * @param array2 * @return false if arrays have different length or different values at a specific index, * true otherwise */ public static boolean deepEquals(boolean[] array1, boolean[] array2) { if (array1.length != array2.length) return false; for (int i = 0; i < array1.length; i++) {