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.
Please write only original code for this assignment, all of the requirements must be fulfilled by the Java application produced.