How to find the even numbers in my code? : <p>for my assignment I have to write another method called numberOfEvens which takes in the array of my random int generator code and uses a for loop to traverse through the array. Thus making it count the number of elements in the array which are even then returns this number. How can I do this? Please give me an clear example thanks!</p>

<pre><code>  public static int[] randomArray(int size) { 
  Random random =new Random();int[] a = new int[size];
  for (int i = 0; i &lt; a.length; i++) {
        a[i] = random.nextInt(100);

    }
    return a;
}
</code></pre>
