26 lines
609 B
Java
26 lines
609 B
Java
public class Test
|
|
{
|
|
public static void test() {
|
|
List liste = new List<String>();
|
|
liste.add("Hallo");
|
|
liste.add("Welt");
|
|
liste.add("Informatik");
|
|
liste.add("ist");
|
|
liste.add("toll");
|
|
liste.add("!!!");
|
|
|
|
liste.remove(1);
|
|
|
|
liste.add(3, "wirklich");
|
|
|
|
Node<String> current = liste.first;
|
|
|
|
while (current != null) {
|
|
System.out.println(current.wert);
|
|
current = current.next;
|
|
}
|
|
|
|
System.out.println(liste.contains("ist"));
|
|
}
|
|
}
|