View Single Post
Old 12-28-2005, 02:31 PM   #6 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
This function has to return multiple values, multiple times, and the easiest way to accomplish that is to use a side effect that populates an array. You could probably replace the parameter output_array with a member variable the way you use ways.add above.

Like I said, I don't really do java, my code sample is just meant to look java-esque so you can understand it enough to translate it to real java. I guess sometimes I don't guess right on the syntax though. How do you add an element to an array?
__________________
Stop intellectual property from infringing on me

Last edited by teknomage1; 12-29-2005 at 01:23 AM.
teknomage1 is offline   Reply With Quote