private void userInformationView() { String number = (String) session.get("user library number"); if (number != null) { User user = userService.findByLibriaryNumber(number); System.out.print( "ID: " + user.getId().toString() + NewLine + "Name: " + user.getName() + NewLine + "Library Number: " + user.getLibrary_number() + NewLine + "Email: " + user.getEmail() + NewLine + "Phone: " + user.getPhone() + NewLine); } else { System.out.print("Not logged in."); } System.out.print("Press Enter to go back."); scanner.nextLine(); path.remove(path.size() - 1); }
private void userLoginView() { System.out.print("User Login" + NewLine); System.out.print("Input Library Number:" + NewLine); String number = scanner.nextLine(); System.out.print("Input Password:"******"user library number", number); System.out.print("Logged in. Press Enter to go back." + NewLine); } else { System.out.print("Invalid library number or password. Press Enter to go back." + NewLine); } scanner.nextLine(); path.remove(path.size() - 1); }