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 sorter = new SelectionSorter(a);
 15        sorter.sort();
 16  
 17        System.out.println(Arrays.toString(a));
 18     }
 19  }
 20  
 21