1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 01:42:43 +03:00
semantic/test/fixtures/java/corpus/Switch.A.java

30 lines
786 B
Java
Raw Normal View History

2018-06-02 00:09:56 +03:00
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);
}
}