Alle Programmierübungen in der Kursstufe Abi 2021
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
543B

  1. package adt;
  2. public class Start {
  3. public static void main(String[] args) {
  4. List l = new List();
  5. l.hinzufügen( new Schüler("Max Haeffele", "AMG 11") );
  6. l.hinzufügen( new Schüler("Emil Amboni", "DHG 11") );
  7. l.hinzufügen( new Schüler("Anastasia Hermann", "DHG 11") );
  8. System.out.println("Es stehen " + l.länge() + " Schüler in der Schlange");
  9. // Sekretärin
  10. Node sekretärin = l.first;
  11. while(sekretärin != null) {
  12. System.out.println(sekretärin.s.Name);
  13. sekretärin = sekretärin.next;
  14. }
  15. }
  16. }