alright so Im working on a double linked list and writing a remove method which passes in a argument and throws a illegalStateException if there is no value passed into the variable lastItemReturned (which it has its a check)
my issue I cant seem to fix the error: "method does not override or implement a method from a supertype"
issue is at the public void remove(E remove) method and at the subclass cs340ListIterator which I get: cs340DLL.cs340ListIterator is not abstract and does not override abstract method remove() in ListIterator
am I not implementing the interface correctly and instead in the remove() method do
It would have to go into a named class somewhere. It does not necessarily have to be in the ListIterator class. It can go anywhere. Remember it is only visible to a reference to the type it is in. If you call the reference ListIterator, you won’t see that method.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop