public boolean contains(T test)
    {
        if (test == null)
        {
            for (int i = 0; i < array.length; i++)
                if (array[i] == null)
                    return true;
        }
        else
        {
            for (int i = 0; i < array.length; i++)
                if (test.equals(get(i)))
                    return true;
        }
        return false;
    }