Question: exercise 5.4 why does the removeZeroCounts method use a while loop with an iterator ,instead of a for-each loop as used in the other methods?
exercise 5.4 why does the removeZeroCounts method use a while loop with an iterator ,instead of a for-each loop as used in the other methods? could it be written with a for-each loop? could the other methods be written using a while loop?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
