+ 1
How to return an array through method?
5 Respuestas
+ 1
thanks
+ 1
will it work??
+ 1
thanks @ Roland
0
public int[] myMethod() {
// some code
. . .
. . .
return new int[42];
}
Just a basic example
0
Sure will it work. But i don't know what you want to do, so you have to modify it the way you need it