Pass parameter to method or use instance member
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
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
.
Relevant Pages
- Re: Carephone Warehouse Customer Care ?!!!
... >> people resolve such queries..so why should they care what you think? ... >other people's problems as seemed to be the suggestion. ... to criticise the actions of people at the end of their tether for actions ... dealing with this matter. ... (uk.telecom.mobile) - Re: MS Project opens Project Central
... Thanks for the suggestion however, it doesn't matter what ... Try opening the ... >Gantt Chart view then save the file while that view's ... (microsoft.public.project.pro_and_server) - Re: Comparing different scales
... > I like Rich's suggestion about transforming the reaction time variable. ... going to result, which might matter. ... in measuring the latent entity is always less than the ... You'd lose that information with z-score subtraction. ... (sci.stat.edu) - Re: Looping through file for regex
... if output order doesn't matter. ... original code checked the first key against the file, then second, then ... Your suggestion could find the sixth index before it finds the ... (perl.beginners) - Re: Looping through file for regex
... > Your way is certainly better, if output order doesn't matter. ... > original code checked the first key against the file, then second, then ... Your suggestion could find the sixth index before it finds the ... (perl.beginners) |
|