T
tony
Hello!
I just wonder if you out there have any your suggestion about this matter.
I have a class in this class I have an ArrayList.
In one instance method in this class I fill this ArrayList with values that
have been reda from db.
Now is it possible to say something about what is general best for this
method.
There is some different possibilities.
1. Is it to pass the ArrayList to this method.
2. Is it to pass the ArrayList to this method and return the ArrayList.
3. Use the ArrayList without passing or returning any ArrayList because it
is an instance member.
//Tony
I just wonder if you out there have any your suggestion about this matter.
I have a class in this class I have an ArrayList.
In one instance method in this class I fill this ArrayList with values that
have been reda from db.
Now is it possible to say something about what is general best for this
method.
There is some different possibilities.
1. Is it to pass the ArrayList to this method.
2. Is it to pass the ArrayList to this method and return the ArrayList.
3. Use the ArrayList without passing or returning any ArrayList because it
is an instance member.
//Tony