What is the most elegant way to check if all values in a boolean array are true?
<p>I have a boolean array in java: </p>

<pre><code>boolean[] myArray = new boolean[10];
</code></pre>

<p>What's the most elegant way to check if all the values are true?</p>
