29 lines
549 B
Java
29 lines
549 B
Java
|
|
public class Test3
|
|
{
|
|
public static void test(){
|
|
LinkedList l = new LinkedList();
|
|
|
|
l.einfuegen(4);
|
|
l.einfuegen(8);
|
|
l.einfuegen(3);
|
|
l.einfuegen(17);
|
|
|
|
System.out.println(l);
|
|
System.out.println(l.erste() );
|
|
|
|
|
|
System.out.println(1);
|
|
|
|
}
|
|
public static void test2(){
|
|
Node<String> n = new Node<String>();
|
|
|
|
n.wert = "Hallo";
|
|
|
|
Node<Integer> i = new Node<Integer>();
|
|
|
|
i.wert = 5;
|
|
}
|
|
}
|