See More

/* Return the number of even ints in the given array. */ public int countEvens(int[] nums) { int count = 0; for(int i = 0; i < nums.length; i++) { if(nums[i] % 2 == 0) count++; } return count; }