Here you can find the source of any(boolean[] b)
public static boolean any(boolean[] b)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean any(boolean[] b) { for (int i = 0; i < b.length; i++) if (b[i]) return true; return false; }/*from ww w. jav a2 s . co m*/ }