Simonefleek / Studies-

0 stars 0 forks source link

Switch Statements #2

Open Simonefleek opened 7 months ago

Simonefleek commented 7 months ago

public class DetailedCoding { public static void main(String[] args) { int day = 7;

    switch (day) {
        case 1:
            System.out.println("Today is Sunday");
             break;
        case 2:
            System.out.println("Toay is Monday");
            break;
        case 3:
            System.out.println("Today is Tuesday");
            break;
        case 4:
            System.out.println("Todays Is Wednesday");
            break;
        case 5:
            System.out.println("Today is Thursday");
            break;
        case 6:
            System.out.println("Today is Friday ");
            break;
        case 7:

            System.out.println("Today is Saturday");
            break;
        default:
            System.out.println("Invaild Data");
    }
}