/**
   This program tests the 2nd duplicate remover algorithm by removing
   duplicates in an array that is filled with random numbers.
*/
public class DuplicateRemove2Tester
{  
   public static void main(String[] args)
   {  
      int[] a = ArrayUtil.randomIntArray(20, 100);
      ArrayUtil.print(a);

      DuplicateRemover2 remover = new DuplicateRemover2(a);
      remover.removeDups();

      ArrayUtil.print(a, remover.size);
   }
}

   
