private static void returnBook() {
   printLoanedBooks();
   System.out.println("\nEnter the number of the book to be returned: ");
   int bookIndex = keyboard.nextInt();
   try {
     library.getLoanedBooks().get(bookIndex).returnStock();
     System.out.println("Thank you for returning the book.");
   } catch (StockNotOutException e) {
     System.out.println("That is not a valid book to return");
   }
 }
 private static void printLoanedBooks() {
   System.out.println("Loaned Books:\n");
   printList(library.getLoanedBooks());
 }
 private static void whoHasBooks() {
   for (Book book : library.getLoanedBooks()) {
     System.out.println(book + " : " + book.loanedTo());
   }
 }