java: array if all the same
<p>I have a array:</p>

<pre><code>int tarningar[] = new int[5];
</code></pre>

<p>That holds numbers. When all the numbers are the same, system.out.println('ok');</p>

<p>How can I do this?</p>
