Suppose a switch statements controlling expression is (stdIn.next().charAt(0)), and you want a user input of Q or

Question:

Suppose a switch statement’s controlling expression is (stdIn.next().charAt(0)), and you want a user input of ‘Q’ or ‘q’ to execute the same statement, which is: System.out.println("quitting"); Write the code fragment for a case clause that does that.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: