+ 1

If I want to take an array in the method that I created and I want to return another array, how can I do it?

about design a method by the user

5th Jan 2017, 1:00 PM
Rea
Rea - avatar
2 Respostas
+ 4
just return the name of the array? the function should have the return type in the definition , following with -> [] like public int[] myFunc(){}
5th Jan 2017, 1:06 PM
Nahuel
Nahuel - avatar
+ 1
could you tell me an example, because I realy do not understand this idea 😂😂💔 , forgive me I 've just start leaning code and I have no idea about it 💔
5th Jan 2017, 1:16 PM
Rea
Rea - avatar