Hello fellow programmers,
In my app I just deserialized an ArrayList from a text file and now I have an ArrayList with Strings. For design purposes I want to put the contents of the ArrayList into one organized string with comas and spaces.
I made an attempt at it but he app forcecloses and the LogCat pinpoints the error to this code:
FYI: OptionsText is an empty string and ListOptions is the ArrayList with the strings.
public void getOptionsText(){
int i;
OptionsText=ListOptions.get(1);
for(i=2; i<ListOptions.size(); i++){
OptionsText = OptionsText + ", " + ListOptions.get(i);
}
Options.setText(OptionsText);
}