Class CommandHandler

java.lang.Object
CommandHandler

public class CommandHandler extends Object
Handles user commands for managing students and spellbooks in the Hogwarts Archive system. Supports operations such as listing, searching, renting, relinquishing, and saving data.
  • Constructor Details

    • CommandHandler

      public CommandHandler()
  • Method Details

    • handleCommand

      public boolean handleCommand(String userInput)
      Parses and executes a user command.
      Parameters:
      userInput - the raw command string entered by the user
      Returns:
      true if the command signals to exit the program, otherwise false