| Author |
method returning an array?
|
M Shaw
Greenhorn
Joined: Sep 14, 2008
Posts: 11
|
|
Hey, If I have a method that returns an array, say makeArray(), then in another method can I make a new array and set it to the method? for example something like this: int[] array2 = makeArray();
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32708
|
|
Yes. Assuming makeArray returns an int[].
|
 |
M Shaw
Greenhorn
Joined: Sep 14, 2008
Posts: 11
|
|
yey! Thank you
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32708
|
|
You're welcome
|
 |
 |
|
|
subject: method returning an array?
|
|
|