Java Array Value Any anyTrue(boolean[] booleans)

Here you can find the source of anyTrue(boolean[] booleans)

Description

any True

License

LGPL

Declaration

public static boolean anyTrue(boolean[] booleans) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static boolean anyTrue(boolean[] booleans) {
        for (boolean b : booleans)
            if (b)
                return true;
        return false;
    }//  www.ja v a 2 s . c o m
}

Related

  1. anyNull(Object... objs)
  2. anyNulls(Object... items)
  3. anyToDoubleOrElse(Object any, double orElse)
  4. anyToString(Object o, boolean noneNull)
  5. anyTrue(boolean[] booleans)
  6. anyValuesTrue(boolean[] booleanArray)