Gentlemen, one of the methods of class Array
has method sort
.
The sort
method works like this:
Arrays.sort(vetor);
The vector itself is changed, I searched in many places and by what I understood this is passing value by reference.
In C we use pointers, but in Java? How does it work?