Edit ArrayList

Hi, I have an ArrayList which saves different string values, i want to be able to edit these string values by fetching everyone of them and putting them each in a text field, so if there were 20 strings there would be twenty text boxes. after retrieveing the strings, i want to be able to modify a string and write it back to the arraylist overwriting the original values.

Hope you can help. thanks.

[412 byte] By [Symb0la] at [2007-11-26 23:39:57]
# 1
Something you don't seem to know: you can't edit Strings.Anyway. You can easily use the set(x, o) and get(x) methods of ArrayLists, so I don't know exactly your problem is.
CeciNEstPasUnProgrammeura at 2007-7-11 15:06:08 > top of Java-index,Java Essentials,Java Programming...
# 2
Ok, say if i input a result or a team name and spelt it wrong or input the wrong result. how would i go about updating the record? Does that make better sense?Thanks.
Symb0la at 2007-7-11 15:06:08 > top of Java-index,Java Essentials,Java Programming...
# 3

[url=http://java.sun.com/j2se/1.4.2/docs/api/java/util/List.html#set(int,%20java.lang.Object)]List set()[/url]

set

public Object set(int index,Object element)

Replaces the element at the specified position in this list with the specified element (optional operation).

Parameters:

index - index of element to replace.

element - element to be stored at the specified position.

Returns:

the element previously at the specified position.

TuringPesta at 2007-7-11 15:06:08 > top of Java-index,Java Essentials,Java Programming...