Java Array Value Any any(boolean[] values)

Here you can find the source of any(boolean[] values)

Description

any

License

Open Source License

Declaration

public static boolean any(boolean[] values) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean any(boolean[] values) {
        for (boolean value : values)
            if (value)
                return true;
        return false;
    }//from   ww  w  .  j  ava  2  s .  com

    public static boolean any(boolean[][] values) {
        for (boolean[] value : values)
            for (boolean aValue : value)
                if (aValue)
                    return true;
        return false;
    }
}

Related

  1. any(boolean[] b)
  2. any(final String a, final String b)
  3. anyAreEmpty(String... words)
  4. anyBlank(String... ss)
  5. anyEmpty(final String head, final String... tail)