Here you can find the source of ANDWith(boolean[] toChange, boolean[] toAdd)
public static void ANDWith(boolean[] toChange, boolean[] toAdd)
//package com.java2s; //License from project: LGPL public class Main { public static void ANDWith(boolean[] toChange, boolean[] toAdd) { if (toChange.length != toAdd.length) throw new IllegalArgumentException("Array sizes have to be equal."); for (int i = 0; i < toAdd.length; i++) { toChange[i] = toAdd[i] && toChange[i]; }/* w w w. j a va 2 s . c o m*/ } }