Switch Case in JAVA JAVA by Ravinder Nath Rajotiya - April 15, 2021April 16, 20210 Decision Making using switch case statement Well you have seen the decision making in previos posts on if, if-else statements. switch case is yet another pwerful decision making concept. We first ask the user to input some number, alphabet or some string to be used in taking decision so that control can be transferred at some relevant place in the program. //JOptionPane.showInputDialog() gets only inputs string values, to make them numbers we need to convert it to integer as: input = JOptionPane.showInputDialog("Please enter 1, 2, or 3"); //convert to integer number=Integer.parseInt(input) //for for inputting single character, we don't convert string to letters, but read only first letter of string at position '0'. This is becaues strings are constructed using characters input = JOptionPane.showInputDialog("Please enter a, b, or