Since this is an assignment, you will need to be very specific to the problem you are actually having. We cannot just implement these methods.
Don't think too much into generics. 'T' is simply anything. You may operate on it as if it is an object, but avoid casting it within a generic.
The only one I will give you is the iterator, since that has no javadoc comments on it, and its not as clear when dealing with a direct array. What you do with this is cast it to a generic List<T> and fetch the iterator off of the collection. Alternatively, you can write your own class that implements Iterator, Iterable, and use that to iterate the collection. To do so in Java, use the Arrays class and fetch the asList:
PHP Code:
public Interator<T> iterator()
{
return Arrays.asList(this.contents).iterator();
}
As for the rest, follow the javadoc and the other implemented methods to determine what code to implement.