A simple quicksort algorithm in Java, main will generate 10 random numbers and sort them before printing out the contents.