String value = String. valueOf(userChoice). toUpperCase(); This helps to make the conversion of lowercase to uppercase before doing the evaluation in the switch case.
String value = String. valueOf(userChoice). toUpperCase(); This helps to make the conversion of lowercase to uppercase before doing the evaluation in the switch case.