mirror of
https://github.com/github/semantic.git
synced 2024-12-27 17:05:33 +03:00
30 lines
786 B
Java
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);
|
|
}
|
|
}
|