A good answer might be:The complete program is given below. | ||
Complete ZeroRemember to use the length of the array in testing for the end. It would be a mistake to write in a literal value like 5 because you want the method to work for all int arrays.
Of course you could have called your loop control variable something other than "j". | ||
QUESTION 11:Will the "j" in zeroAll() and the 'j' in print() interfere with each other? Click Here after you have answered the question |