Here you can find the source of and(boolean... bs)
public static boolean and(boolean... bs)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean and(boolean... bs) { boolean r = true; for (boolean b : bs) { r = b && r;//w w w .j a v a 2 s . c om } return r; } }