diff --git a/Buch.java b/Bibliothek/Buch.java similarity index 95% rename from Buch.java rename to Bibliothek/Buch.java index 2b10e2d..a52849f 100644 --- a/Buch.java +++ b/Bibliothek/Buch.java @@ -1,33 +1,33 @@ -public class Buch { - private String title; - private String author; - public String ISBN; - private int count; - - Buch(String newTitle, String newAuthor, String newISBN, int newCount) { - title = newTitle; - author = newAuthor; - ISBN = newISBN; - count = newCount; - } - - public boolean ausleihen() { - if (count > 0) { - count--; - return true; - } else { - return false; - } - } - - public void zurueckgeben() { - count++; - } - - public void buchInfo() { - System.out.printf("Titel: %s\n", title); - System.out.printf("Autor: %s\n", author); - System.out.printf("ISBN: %s\n", ISBN); - System.out.printf("Verfügbar: %s\n", count); - } -} +public class Buch { + private String title; + private String author; + public String ISBN; + private int count; + + Buch(String newTitle, String newAuthor, String newISBN, int newCount) { + title = newTitle; + author = newAuthor; + ISBN = newISBN; + count = newCount; + } + + public boolean ausleihen() { + if (count > 0) { + count--; + return true; + } else { + return false; + } + } + + public void zurueckgeben() { + count++; + } + + public void buchInfo() { + System.out.printf("Titel: %s\n", title); + System.out.printf("Autor: %s\n", author); + System.out.printf("ISBN: %s\n", ISBN); + System.out.printf("Verfügbar: %s\n", count); + } +}