Exemplo n.º 1
0
 @Override
 public void optionSelected() {
   Collection<Book> booksFound = bookDao.findAllBooks();
   System.out.println("Folgende Bücher sind registriert:");
   for (Book book : booksFound) {
     System.out.println("" + book);
   }
   CharacterReader.readString("Bitte drücken sie any key für weiter");
 }
Exemplo n.º 2
0
 private void printOptions() {
   int option = 0;
   while (option != 7) {
     printOption(1, "Bücher anzeigen", bookShowService);
     printOption(2, "Neues Buch anlegen", bookCreationService);
     printOption(3, "Buch löschen", bookDeletionService);
     printOption(4, "Buch bearbeiten", bookEditService);
     printOption(5, "Buch ausleihen", bookRentService);
     printOption(6, "Buch zurück geben", bookReturnService);
     printOption(7, "Git lib beenden", new DoNothingService());
     option = CharacterReader.readIntegerFromConsole();
     serviceHandlingChoice.get(option).optionSelected();
   }
 }