Class CommandHandler
java.lang.Object
CommandHandler
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandleCommand(String userInput) Parses and executes a user command.
-
Constructor Details
-
CommandHandler
public CommandHandler()
-
-
Method Details
-
handleCommand
Parses and executes a user command.- Parameters:
userInput- the raw command string entered by the user- Returns:
trueif the command signals to exit the program, otherwisefalse
-