| 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.
|