Step 6: Console Input

Write code which uses the Scanner in order to read a console input (a character), and then prints which move it is. Here is a recap of the possible moves:

  • A: Attack
  • S: Strengthen
  • W: Weaken
  • H: Heal
  • Otherwise print Invalid