About this document
CISC275 Fall 2017: Dog Class & Iterators by Zeke Faison is a document available to read on EtoBox.
This document provides an exercise on iterators that involves: 1) Creating a Dog class with a name and toString method. 2) Adding 3 dogs ("Fido", "Spot", "Lucy") to a Collection. 3) Printing the Collection without explicit iteration. 4) Printing only dogs named "Spot" using a for-each loop. 5) Creating an Iterator over dogs and looping to test adding/removing from the Collection/Iterator. 6) Commenting code that prints duplicate command line arguments.
- Author
- Zeke Faison
- Language
- EN