You are on page 1of 1

practical 4.

public class switchEx{

public static void main(String args[]){

int ch=3;

switjava ch(ch){

case 1;

System.out.println("one");

break:

case 2;

System.out.println("Two");

break:

case 3;

System.out.println("Three");

break:

default:

System.out.println("Wrong choice");

Output

Three

You might also like