⇒ Rewrite the following if statement using switch statement :- if(choice==1)
System.out.println(“Blue”);
else if(choice==2||choice==3)
System.out.println(“Green”);
else if(choice==4)
System.out.println(“Red”);
else
System.out.println(“Invalid choice”);