27 lines
583 B
Java
27 lines
583 B
Java
package T01.Aufgabe06;
|
|
|
|
/**
|
|
* Teil 1 / Aufgabe 6
|
|
*
|
|
* @author Sebastian Brosch
|
|
*/
|
|
public class Aufgabe06 {
|
|
public static void main(String[] args) {
|
|
VerketteteListe<Integer> list = new VerketteteListe<Integer>();
|
|
list.add(1);
|
|
list.add(2);
|
|
list.add(3);
|
|
list.add(4);
|
|
list.printAll();
|
|
System.out.println("--------------------");
|
|
list.delete(1);
|
|
list.printAll();
|
|
System.out.println("--------------------");
|
|
list.delete(3);
|
|
list.printAll();
|
|
System.out.println("--------------------");
|
|
list.delete(4);
|
|
list.printAll();
|
|
}
|
|
}
|