0
I need a help to do a LinkedList class that implements OrderedListADT.
public interface OrderedListADT <T> extends ListADT <T> { public void add (T element); } import java.util.Iterator; public interface ListADT <T> extends Iterable <T> { public T removesFirst(); public T removesLast(); public T removes(T element); public T first (); public boolean contains(T target); public boolean isEmpty (); public int size (); public Iterator <T> iterator (); public String toString (); }
1 ответ
+ 2
Check the tutorial on Linked Lists. It has a java example too.
To implement the interface you need to define all of its methods.
https://www.sololearn.com/learn/634/?ref=app