I was wondering if there is a way to perform case insensitive match in java switch case statement. the default implementation is case sensitive. Please see
To avoid having to use the case expression to verify if it is lowercase or uppercase, I recommend that you use the following:
String value = String.valueOf(userChoice).toUpperCase();
This helps to make the conversion of lowercase to uppercase before doing the evaluation in the switch case.