computer science
Create a method called countZeros, which takes an integer array as an input parameter and returns the number of zero entries in the array
Reply
Answers
The countZeros method takes an integer array as an input and returns the number of zeros in the provided array. To accomplish this, the method needs to first loop over the array and count the number of zeros in the array. After the loop has completed, the method will return the number of zeros found in the array.