Thread: ArrayLists
View Single Post
Old Nov 9th, 2006, 11:34 AM   #2
Kaja Fumei
Hobbyist Programmer
 
Join Date: Oct 2005
Posts: 134
Rep Power: 3 Kaja Fumei is on a distinguished road
Do you really need an ArrayList? Is sequence actually going to modified once it has been read? If not, it seems like a waste to use an ArrayList. If all you need is to be able to look up an index in the sequence you can the String class's charAt(index) method on your input string.
Kaja Fumei is offline   Reply With Quote