Question: 16. Fill in the blank so the count method counts the number of O's in the first n elements of an array and returns it.

16. Fill in the blank so the count method counts the number of O's in the first n elements of an array and returns it. for example: if we invoke the method with counto (arr, 10); and arr contains {0, 1, 2, 25, 26, 0, 27, 8, 0, 0} it will return the number 4. public static void int counto (int [] nums, int N) int count = 0; for (int k = 0; k
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
