1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +03:00
semantic/test/fixtures/java/switch.java
Ayman Nadeem f018922911 add tests
2018-04-27 15:50:39 -07:00

30 lines
786 B
Java

public class Test
{
public static void main(String[] args)
{
int day = 5;
String dayString;
switch (day)
{
case 1: dayString = "Monday";
break;
case 2: dayString = "Tuesday";
break;
case 3: dayString = "Wednesday";
break;
case 4: dayString = "Thursday";
break;
case 5: dayString = "Friday";
break;
case 6: dayString = "Saturday";
break;
case 7: dayString = "Sunday";
break;
default: dayString = "Invalid day";
break;
}
System.out.println(dayString);
}
}