|
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.
|