+ 1

How to return an array through method?

28th Jan 2017, 6:06 AM
Vaibhav Tandon
Vaibhav Tandon - avatar
5 Respuestas
+ 1
thanks
28th Jan 2017, 8:31 AM
Vaibhav Tandon
Vaibhav Tandon - avatar
+ 1
will it work??
28th Jan 2017, 1:02 PM
Vaibhav Tandon
Vaibhav Tandon - avatar
+ 1
thanks @ Roland
28th Jan 2017, 6:20 PM
Vaibhav Tandon
Vaibhav Tandon - avatar
0
public int[] myMethod() { // some code . . . . . . return new int[42]; } Just a basic example
28th Jan 2017, 9:36 AM
Roland
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
28th Jan 2017, 4:40 PM
Roland