public void userDetails(User user) {
   String header =
       String.format("%-20s %-20s %-20s %-12s", "LIBRARY NUMBER", "NAME", "EMAIL", "MOBILE");
   System.out.println("\n" + header);
   System.out.println("=======================================================================");
   System.out.println(user);
   dispatcher.start(Constants.MENU_RUN, user);
 }
 public void checkedOutBooks(User user) {
   if (user.isAdminUser()) {
     String header = String.format("%-20s %-20s %-6s", "BOOK", "AUTHOR", "YEAR");
     System.out.println("\n" + header);
     System.out.println("==================================================");
     System.out.print(bookSection.listCheckedOutItems());
   }
   dispatcher.start(Constants.MENU_RUN, user);
 }
 public void checkedOutMovies(User user) {
   if (user.isAdminUser()) {
     String header = String.format("%-20s %-6s %-20s %-5s", "MOVIE", "YEAR", "DIRECTOR", "RATING");
     System.out.println("\n" + header);
     System.out.println("==========================================================");
     System.out.print(movieSection.listCheckedOutItems());
   }
   dispatcher.start(Constants.MENU_RUN, user);
 }
 public void availableBooks(User user) {
   if (user.isAdminUser() || user.isNormalUser()) {
     String header = String.format("%-20s %-20s %-6s", "BOOK", "AUTHOR", "YEAR");
     System.out.println("\n" + header);
     System.out.println("==================================================");
     String result = bookSection.listAvailableItems();
     System.out.print(result);
   }
   dispatcher.start(Constants.MENU_RUN, user);
 }
 public void displayUserHavingBooks(User user) {
   if (user.isAdminUser()) {
     String header =
         String.format(
             "%-20s %-20s %-20s %-12s %-20s %-20s %-6s",
             "LIBRARY NUMBER", "NAME", "EMAIL", "MOBILE", "BOOK", "AUTHOR", "YEAR");
     System.out.println("\n" + header);
     System.out.println(
         "============================================================================================================================");
     System.out.println(bookSection.returnUsersHavingBooks());
   }
   dispatcher.start(Constants.MENU_RUN, user);
 }