Java question
-
- Posts: 384
- Joined: Mon Sep 25, 2006 12:57 pm
Java question
how do i return an array as a variable to the main method in java? thanks in advance
Your sig can't exceed 500x120 and 75kb in file size.
caboose wrote:your toast has been burned, and no amount of scraping will remove the black parts!
-
- Posts: 384
- Joined: Mon Sep 25, 2006 12:57 pm
I hope you did something like this as your solution:
Code: Select all
void main(string args[]){
int[] i = arrayMethod();
}
int[] arrayMethod(){
return new int[]{0, 1, 2};
}