0
How to sort an array in Java?
3 Respuestas
+ 2
Arrays.sort(*your Array*);
+ 2
It's the fastest way...but if you want to sort an array of an object, written by yourself, you have to implement the interface Comparable and you also have to override the method "compareTo".
For more details take a look at
https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html
0
@freakmanmega is it the fastest way or we can use quick sort algorithm