1  import java.util.Arrays;
  2  
  3  /**
  4     This program demonstrates the selection sort algorithm by
  5     sorting an array that is filled with random numbers.
  6  */
  7  public class SelectionSortDemo
  8  {  
  9     public static void main(String[] args)
 10     {  
 11        int[] a = ArrayUtil.randomIntArray(20, 100);
 12        System.out.println(Arrays.toString(a));
 13  
 14        SelectionSorter.sort(a);
 15  
 16        System.out.println(Arrays.toString(a));
 17     }
 18  }
 19  
 20