hey,
i got a method that returns value which is java.util.List<java.lang.String>. this method actually contain data that was stored from .txt file which is simply names of people.
how can i display this in the JList or how can i convert this value to a simple array so later i can work with it.
this is a method that i need to work with
public StringArray displayNames() {
StringArray name= new StringArray();
name.add("tom");
name.add("james");
name.add("lawrence");
return name;
}
i call this method and the value returned from it needs to be displayed in JList
Thank You