I have an array of boolean entries:
boolean[] myBooleanArray = new boolean[24];
Currently i check if it contains
If you are using the Guava library (which has a lot of useful stuff):
Booleans.contains(myBooleanArray, true);
(JavaDoc)
The documentation of this method also describes another way. You can replace a boolean[] with a BitSet (should be more memory efficient) and call !bitSet.isEmpty() to check whether at least one bit is true.