Advertisement
Aldin_SXR

quick sort main()

Apr 2nd, 2024
559
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. public static void main(String[] args) {
  2.     System.out.println("Quick sort:");
  3.     int[] elements = { 20, 8, 30, 5, 18, 35, 15, 41, 10 };
  4.  
  5.     QuickSort.sort(elements);
  6.  
  7.     /* Print the elements */
  8.     for (int i: elements) {
  9.         System.out.println(i);
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement