I'm trying to get the following code to work, but it fails in the last section. When I try to access the list through the iterator it returns an array of Strings, but I'm unable for figure out the syntax to get the elements of the array. I've tried various ways of accessing them and different casts but none have worked. The more I change it, the worse it gets. Maybe the problem is built into the design I used? Any suggestions would be very appreciated.
[Added code tags - see UseCodeTags for details]
Output:
There are 4 element in the list
0) Theodore Seuss Geisel
1) Samuel Langhorne Clemens
2) Hector Hugh Munro
3) Charles Lutwidge Dodgson
[Theodore, Seuss, Geisel]
[Samuel, Langhorne, Clemens]
[Hector, Hugh, Munro]
[Charles, Lutwidge, Dodgson]