I'm wondering if there is a more 'neat' way to test if all the values in a boolean array are true/false than iterating through the array and testing each individually like this:
for (boolean eval:booleanArray) {
if (!eval) {
return false;
}
}
Essentially, i want to see if all of the values stored in an array of booleans is true, and if so, perform an action.
I'm pretty sure that there is some form of method for this, like array.contains(false)
but i may be wrong.