Hello I'll get straight to the point, I am working on an application where I get input from the user (cmd) and send it off to a switch statement (switch(cmd)). I don't know how to explain the rest so I'll show you.
String option1 = cmd.substring(cmd.indexOf(" ") + 1);
Is equaling what ever the command (cmd) is. For example if I type:
cmd should equal "hello" and option1 should equal "world" but instead option1 equals "hello".
String cmd = new Scanner(System.in).nextLine();