I\'m trying to make a program that consists of an array of 10 integers which all has a random value, so far so good.
However, now I need to sort them in order from l
just FYI, you can now use Java 8 new API for sorting any type of array using parallelSort
parallelSort
uses Fork/Join framework introduced in Java 7 to assign the sorting tasks to multiple threads available in the thread pool.
the two methods that can be used to sort int
array,
parallelSort(int[] a)
parallelSort(int[] a,int fromIndex,int toIndex)