Java Boolean And and(boolean... bs)

Here you can find the source of and(boolean... bs)

Description

and

License

Open Source License

Declaration

public static boolean and(boolean... bs) 

Method Source Code

//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;
    }
}

Related

  1. and(boolean a, boolean b)
  2. and(boolean b1, boolean b2)
  3. and(boolean val1, boolean val2)
  4. and(boolean... bools)
  5. and(Boolean... operands)
  6. andBoolOperand(Boolean o, Boolean a)