Raman has typed the following code :
int ch = Integer.parseInt (jTextField1.getText());
switch (ch)
{
case 1:
jTextField2 . setText ( "Service" );
case 2:
jTextField2 . setText ("Complaint") ;
case 3:
jTextField2 . setText ("Operator");
break;
default :
jTextField2 . setText ("Not a valid entry");
}
On entering the value 1, 2 or 3, he is getting the same output. Mention the possible reason for the same.