public String getCurrentDay()
{
if(day.getValue() == 0) {
return "Sunday";
}
if(day.getValue() == 1) {
return "Monday";
}
if(day.getValue() == 2) {
return "Tuesday";
}
if(day.getValue() == 3) {
return "Wednesday";
}
if(day.getValue() == 4) {
return "Thursday";
}
if(day.getValue() == 5) {
return "Friday";
}
if(day.getValue() == 6) {
return "Saturday";
}
return "null";
}
How do I make this into a switch statement?