diff --git a/Bibliothek.java b/Bibliothek/Bibliothek.java similarity index 95% rename from Bibliothek.java rename to Bibliothek/Bibliothek.java index 5de6e2f..74853db 100644 --- a/Bibliothek.java +++ b/Bibliothek/Bibliothek.java @@ -1,28 +1,28 @@ -import java.util.ArrayList; - -public class Bibliothek { - private ArrayList books = new ArrayList<>(); - - public void buchHinzufuegen(Buch buch) { - books.add(buch); - } - - public Buch buchSuchen(String isbn) { - for (Buch buch : books) { - if (buch.ISBN.toLowerCase().equals(isbn.toLowerCase())) { - return buch; - } - } - - return null; - } - - public void alleBuecherAnzeigen() { - for (Buch buch : books) { - buch.buchInfo(); - System.out.println("-".repeat(10)); - } - } - - -} +import java.util.ArrayList; + +public class Bibliothek { + private ArrayList books = new ArrayList<>(); + + public void buchHinzufuegen(Buch buch) { + books.add(buch); + } + + public Buch buchSuchen(String isbn) { + for (Buch buch : books) { + if (buch.ISBN.toLowerCase().equals(isbn.toLowerCase())) { + return buch; + } + } + + return null; + } + + public void alleBuecherAnzeigen() { + for (Buch buch : books) { + buch.buchInfo(); + System.out.println("-".repeat(10)); + } + } + + +}