I have a class that implements getter and setter methods and related code as follows.
ArrayList<String> viewArray = new ArrayList<String>();
public ArrayList<String> getView() {
return viewArray;
}
from my activity, I am trying to get acces to stored array like:
ArrayList<String> al = new ArrayList<String>();
al = parsedExampleDataSet.getView();
But “al” receives no data. However, when getView() is executed, viewArray is filled properly. What am I missing? Thank you.
Others have make some good comments but I thought I’d take you through the code as I see it.
Here’s your activity class annotated with some details about the value of
a1:Please edit your question to explain more what you are having problems with.