Here you can find the source of any(boolean[] values)
public static boolean any(boolean[] values)
//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; } }