/** * Beschreiben Sie hier die Klasse List. * * @author (Ihr Name) * @version (eine Versionsnummer oder ein Datum) */ public class List { private Node first; public List(){ //leere liste soll erzeugt werden, wert wird zugedingst first = null; } public boolean isEmpty(){ if (first == null)return true; return false; } public int size(){ Node current = first; int count = 0; while (current != null){ count++; current = current.next; } return count; } public T get(int n){ Node current = first; for(int i = 0; i neu = new Node(); neu.wert = val; if (first ==null){ first = neu; }else{ Node current = first; while (current.next !=null){ current = current.next; } current.next = neu; } } public void add(int n, T val){ } public boolean contains(T val){ Node current = first; while (current != null){ if (current.wert.equals(val)) return true; } return false; } public T remove(int n){ } }