posted 13 years ago
Good evening, can I ask for some guidance with an issue I have with a small program?
I am having problems with a couple of classes using an ArrayList and an Iterator with a scanner reading in a file. When the file has been read in and another class attempts to return the elements in the Iterator, it only reports back every other entry from the file. So the file File1.txt contains 10 rows of Computer names, but when the program runs it only reports back 5 of the names.
The Class data is:
The next class is:
Thank you in advance.
Jin.