25 lines
372 B
Java
25 lines
372 B
Java
|
|
public class LinkedList {
|
|
private Knoten kopf;
|
|
|
|
LinkedList(int wert){
|
|
kopf = new Knoten(wert);
|
|
}
|
|
|
|
|
|
public void einfuegenAmEnde(int wert) {
|
|
kopf.einfuegenAmEnde(wert);
|
|
}
|
|
|
|
public int auslesenAnPos(int pos) throws Exception {
|
|
|
|
return kopf.auslesenAnPos(pos);
|
|
}
|
|
|
|
public void loeschenAnPos(int pos) throws Exception {
|
|
kopf.loeschenAnPos(pos);
|
|
|
|
}
|
|
|
|
}
|