-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathWeek.java
More file actions
38 lines (36 loc) · 1.09 KB
/
Copy pathWeek.java
File metadata and controls
38 lines (36 loc) · 1.09 KB
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
38
package enumeration;
public class Week {
Day day;
public Week(){}
public Week(Day day){
this.day = day;
}
public void whatToDo(Day day){
switch(day){
case MONDAY:
System.out.println("Start working on CodeLab");
break;
case TUESDAY:
System.out.println("Start working on Homework");
break;
case WEDNESDAY:
System.out.println("Join Mentoring session");
break;
case THURSDAY:
System.out.println("join group discussion");
break;
case FRIDAY:
System.out.println("Submit home work, then play soccer");
break;
case SATURDAY:
System.out.println("Join weekend class-1");
break;
case SUNDAY:
System.out.println("Join weekend class-2");
break;
default:
System.out.println("Are you out of your mind ! no more day");
break;
}
}
}