Im trying to build a java program that reads user's input as a command, currently, i want to make 2 commands: Enter and Quit
if the user type Enter as a command, the program will run, if the user type Quit, the program will halt.
how can i justify whether its a Quit command or a Enter command? Also, how can I vertify if they write the command in prefix, for example, instead of type Quit, the user typed Q, or Qu, or Qui, ignore the case 2.
if the user type Enter as a command, the program will run, if the user type Quit, the program will halt.
how can i justify whether its a Quit command or a Enter command? Also, how can I vertify if they write the command in prefix, for example, instead of type Quit, the user typed Q, or Qu, or Qui, ignore the case 2.
Comment