Re: Method return value(s)
To return more than one value, you will have to package them into an array, a class or some kind of collection that you can return.
Or call the method multiple times with the information that it needs to do each calculation and have it return the value from that calculation.
Re: Method return value(s)
we'll I guess it will have to be an array right? Because I do not know the length, in the program I am using this in, the user inputs the input which determins the length.
Re: Method return value(s)
If you do NOT know how many items will be input, then you'd better use an ArrayList.
When using an array you have to give it a fixed size when you define it. An ArrayList will grow as needed.