import java.util.Arrays;

public class ArraySet implements IntSet
{
   public boolean test(int n)
   {
      ...
   }
   
   public void clear(int n) 
   {
      ...
   }
   
   public void set(int n)
   {
      ...
   }

   // Don't change any of these (but add javadoc)
   
   public int min()
   {
      return smallest;
   }
   
   public int max()
   {
      return largest;
   }

   public int size()
   {
      return elementCount;
   }

   // These are left package visible so they can be accessed in a unit test
   int smallest = Integer.MAX_VALUE;
   int largest = Integer.MIN_VALUE;
   int[] elements;
   int elementCount;
}
