Question: Write a static method countEvens ( ) that has five integer paramet number ( i . e . evenly divisible by 2 ) . Ex:
Write a static method countEvens that has five integer paramet number ie evenly divisible by
Ex: If the five parameters are:
then the returned count will be:
Hint: Use the modulo operator to determine if each number is eve
Your program must define the method:
public static int countevensint num int num
LabProgram.java
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
