Challenge for Generic Programming

Challenge

The method iterSum takes in a variable integers, which is of type Collection<Integer>. Fill in the method so it uses an iterator to compute an print the sum of all the integer values in the collection.

Please sign in or sign up to submit answers.

Alternatively, you can try out Learneroo before signing up.

Contact Us
Sign in or email us at [email protected]