Why do you have to use an Iterator? If this is for a school assignment then make sure you have read the requirements correctly. Confirm with the teacher if you can use the addAll method.
Type: Posts; User: Junky
Why do you have to use an Iterator? If this is for a school assignment then make sure you have read the requirements correctly. Confirm with the teacher if you can use the addAll method.
If your aim is to add items from one Collection into another then why not use the addAll method?