Rewrite the following Java code using switch case statement:
Int option=Integer.parseInt(JTextField1.getText ());
if (option==1)
JTextField2.setText ("Regular Employee");
else if (option==2)
JTextField2.setText ("On Probation");
else if (option==3)
JTextField2.setText("Visiting Faculty");
else if (option== 4)
JTextField2.setText("On Contract");
else
JTextField2.setText("Invalid option");