first is OK
[CODE]String strTemp = JOptionPane.showInputDialog(null, "Please Enter C To Open A Current Account \n Or J To Open A Joint Account");
switch (strTemp.charAt(0)) {
case 'c':
case 'C':
//code statement
System.out.println("cC");
break;
case 'j':
case 'J':
System.out.println("jJ");
break;
default:
System.out.println("no(cC,jJ)");
}[/CODE]
Always add :default:" steatment. This is a practical.