Originally Posted by
bookface
Oh and do I have to insert <html> in the first position of the ArrayList?
I don't know how you wish to use your ArrayList, why you are using a List, or what you fully want to accomplish in the scheme of things - so I couldn't advise you one way or the other.
In the code you posted, a note of caution in changing a collection while iterating over its iterator. Glad I could answer your question - the reverse loop will allow you to change the list as you loop through and not face the hazards of changing the collection while using its iterator.