How to return a value into a variable in Java
<p>If I want to put all the values from the myNum[x] into a varible</p>

<pre><code>int myNum[] = {1, 2, 22, 89, 56, 45};
int num = myNum.length;
int greater ;
for (int x = 0 ; x &lt; num ; x++)
if (myNum[x] &gt; 10) {
System.out.print(greater+"are than 10");
  }
</code></pre>

<p>P.S. Still trying to find my feet in Java Programming</p>
