import java.util.*;
import java.lang.*;
import java.io.*;
public class Example {
public static void main(String args[])
{
switch(1)
{
case 0:System.out.println("a");break;
case 1:System.out.println("b");break;
case 2:System.out.println("c");break;
}
}
}Java
Program to implement Switch Statement.

Written by
View ProfileNikhil Juneja
Passionate software developer and technical contributor at TutorialsLink.
