I am trying to figure out the error in my code. So far i couldnt find out. I have gone through other people's post and reply.
From other post, I do understand that it is impossible to add during iteration. Is there any other way to add a collection?
Just to inform you that hotelWizardBean is a collections of list and objects .
Any help will be grateful. thanks Philip
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35254
7
posted
0
This happens if the underlying collection is modified structurally during the iteration (as the add method does). You can use a ListIterator instead of an Iterator; it has methods that can modify the underlying collection during the iteration (provided the collection allows that).