Thread: ArrayLists
View Single Post
Old Nov 9th, 2006, 11:24 PM   #6
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3 Jimbo is on a distinguished road
Quote:
Originally Posted by titaniumdecoy View Post
@Iftikhar: ...
Damn that C#, eh? :beard:

On subject, you could either do it with the ArrayList or a char[] as suggested, but if you eventually want to look at substrings as well (e.g. see if ABAB occurred), you might consider keeping it as a string and using charAt(). That way you can use substring() for finding the substrings, rather than selecting a subset of an array[list].
__________________
<insert disclaimer here>
<insert shameless plug for Visual Studio here>
Jimbo is offline   Reply With Quote