1public class SwitCase {
2 public static void main (String[] args){
3 String hello = JOptionPane.showInputDialog("Input a letter: ");
4 char hi = hello.charAt(0); //get the first char.
5
6 switch(hi)
7 {
8 case 'a': System.out.println("a");
9 }
10 }
11}