30 lines
496 B
Java
30 lines
496 B
Java
|
|
/**
|
|
* Beschreiben Sie hier die Klasse Test.
|
|
*
|
|
* @author (Ihr Name)
|
|
* @version (eine Versionsnummer oder ein Datum)
|
|
*/
|
|
public class Test
|
|
{
|
|
public static Node test(){
|
|
Node n1 = new Node();
|
|
n1.setWert(3);
|
|
|
|
Node n2 = new Node();
|
|
n2.setWert(7);
|
|
n1.setNext(n2);
|
|
|
|
Node n3 = new Node ();
|
|
n3.setWert(11);
|
|
n2.setNext(n3);
|
|
|
|
Node n4 = new Node();
|
|
n4.setWert(12);
|
|
n3.setNext(n4);
|
|
|
|
return n1;
|
|
}
|
|
|
|
}
|