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!for my assignment I have to write another metho