-
Notifications
You must be signed in to change notification settings - Fork 121
Expand file tree
/
Copy pathMessageForDay.java
More file actions
26 lines (21 loc) · 999 Bytes
/
MessageForDay.java
File metadata and controls
26 lines (21 loc) · 999 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
public class MessageForDay {
public static void main(String[] args) {
String dayOfWeek = "Wednesday";
if (dayOfWeek.equals("Saturday") || dayOfWeek.equals("Sunday")) {
System.out.println("Hooray, it's the weekend!");
if (dayOfWeek.equals("Saturday")) {
System.out.println("Time for a relaxing day or maybe some outdoor activities!");
} else {
System.out.println("Lazy Sunday vibes perfect for a cozy day indoors.");
}
} else {
System.out.println("It's a weekday. Time to work or attend classes.");
if (dayOfWeek.equals("Wednesday") || dayOfWeek.equals("Thursday")
|| dayOfWeek.equals("Friday")) {
System.out.println("Midweek hustle! Keep going, the weekend is approaching.");
} else {
System.out.println("Monday blues? Grab some coffee and power through the day!");
}
}
}
}