Write a Java program (non-GUI preferred) to demonstrate the use of Iterator.
Write a Java program (non-GUI preferred) to demonstrate the use of Iterator. The program should allow a user to do the following: • Allow the reading of a collection of animal objects from an external file. • Output on screen the content of a collection of animal objects. • Use Iterator to achieve these goals. Include a brief documentation (in the code or in a separate document) to explain the input (if any), processing and output of the program. Submit your assignment using the Assignment Files tab above.
You'll get a 5.8KB .RAR file.