Deepti works as a programmer in a travel company. She has developed the following code to display travel detail according to user’s choice. Help her in rewriting the same code using SWITCH CASE :
if (choice==1 )
jTextFieldl.setText ("New Delhi to Goa") ;
else
if (choice = 2) jTextFieldl.setText ("New Delhi to Paris") ;
else
if (choice = 3) jTextFieldl.setText ("New Delhi to Bangkok") ;
else
jTextFieldl.setText ("PI. choose valid option") ;