+ 1
What is this?
Hi, I am very beginner of coding, and i still working on it.. everyday. i'm learning from other sources than sololearn, but there's one thing that i don't understand and i want your help public int [] quicksort1 (int numeros[]) <---what is this? is a method, is an array, if this is a method how is it possible to declare type of variable and take an array as parameter? I would be thankful for your help...
3 Respuestas
+ 4
its a public method, and will return and array of ints. Its called quicksor1, and it will take an array of ints as parameters.
Guessing by the name, it will sort the array, and return a new array with all the numbers sorted.
+ 1
those means that is an array of int.
int a; //a empty int var
int[] arr; //an empty int array
0
ok, thanks man it was fastest than i thought
but i don't understand the brackets outside of the parameters... i mean public int[] quicksort