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 (); }

30th Mar 2019, 2:20 PM
bobo
1 Respuesta
+ 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
4th Apr 2019, 4:26 AM
Tibor Santa
Tibor Santa - avatar