+ 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...

16th Jan 2017, 9:48 PM
Carlos Gabriel de Jesus Gonzalez Tabares
Carlos Gabriel de Jesus Gonzalez Tabares - avatar
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.
16th Jan 2017, 9:50 PM
Nahuel
Nahuel - avatar
+ 1
those means that is an array of int. int a; //a empty int var int[] arr; //an empty int array
18th Jan 2017, 12:22 AM
Nahuel
Nahuel - avatar
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
16th Jan 2017, 9:57 PM
Carlos Gabriel de Jesus Gonzalez Tabares
Carlos Gabriel de Jesus Gonzalez Tabares - avatar