Please make sure you adhere to the policies on academic honesty.
Please Note: There is an error in many printings of the book in Ch. 5.2.3, when desribing the List ADT. That section states that the method insertBefore(p,e) throws an error if p is the first position. There is no reason to throw such an error, as that statement has a natural meaning. In fact, if you look at Code Fragment 5.9, you will see that they have implemented it properly. A similar correction should be made regarding insertAfter(p,e).