Here you can find the source of and(boolean... bools)
Parameter | Description |
---|---|
bools | Input |
public static boolean and(boolean... bools)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from www .j av a 2 s. co m*/ * An and gate * @param bools Input * @return Output */ public static boolean and(boolean... bools) { boolean total = true; for (boolean bool : bools) total = total && bool; return total; } }