| Author |
returning an array...
|
Brandi Love
Ranch Hand
Joined: Sep 19, 2003
Posts: 133
|
|
Can you return an array from a member method to the main method? If so, how would one go about doing it? [ December 03, 2003: Message edited by: Brandi Love ]
|
 |
Karthikeyan Rajendraprasad
Ranch Hand
Joined: Apr 16, 2003
Posts: 70
|
|
say you are having an method that returns a String array it should be like private String[] returnArray() { String strArray[]; ...... return strArray; }
|
Karthikeyan<br />SCJP 1.4, SCWCD.
|
 |
Brandi Love
Ranch Hand
Joined: Sep 19, 2003
Posts: 133
|
|
|
ahh I see. I was trying to do this for a program and I was declaring the method like this: public static passArray. I just wasn't putting the brackets it. Thank you very much!
|
 |
 |
|
|
subject: returning an array...
|
|
|