class Switch
{
public static void main(String args[])
{
String input="a";
switch(input) {
case 'a':
System.out.println("a");
break;
default :
System.out.println("Invalid");
}
}
}
{
public static void main(String args[])
{
String input="a";
switch(input) {
case 'a':
System.out.println("a");
break;
default :
System.out.println("Invalid");
}
}
}
What is the output ?
Comments
Post a Comment