-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
37 lines (26 loc) · 985 Bytes
/
Copy pathMain.java
File metadata and controls
37 lines (26 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import java.util.Scanner;
public class Main
{
public static void main (String[]args)
{
Scanner sc = new Scanner(System.in);
System.out.print("Enter the number : ");
int number = sc.nextInt();
switch(number)
{
case 1 ->{ System.out.println("Monday ");
System.out.println("you need to go for work ");
}
case 2 -> System.out.println("Tuesday ");
case 3 -> System.out.println("Wednesday ");
case 4 -> System.out.println("Thursday ");
case 5 -> System.out.println("Friday ");
case 6 -> System.out.println("Saturday ");
case 7->{
System.out.println("Sunday ");
System.out.println("goonna be fun ");
}
default ->System.out.println("Invalid number ");
}
}
}