I have the following method to implement for an ArrayList, but I'm not sure how to go about treating the exception. If the ArrayList is empty does it automatically throw that exception or do I need to write something in the method?
public T removeLast() throws EmptyCollectionException
{
//TODO: Implement this.
}