-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTheMotivator.java
More file actions
32 lines (29 loc) · 876 Bytes
/
TheMotivator.java
File metadata and controls
32 lines (29 loc) · 876 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
import java.util.ArrayList;
public class TheMotivator {
private ArrayList<String> events = new ArrayList<String>();
public void createEvents() {
events.add("We're going to a movie on Saturday");
events.add("Study session on Sunday - Jim's house");
}
public void thoughtForTheDay(int score) {
if (score == 100)
System.out.println("You're awesome");
else if (score > 90)
System.out.println("That's great");
else if (score > 60)
System.out.println("That's good ");
else
System.out.println("On the other hand, you have different fingers");
}
void upcomingEvents() {
System.out.println("Please join us!");
for (String event : events)
System.out.println(event);
}
public static void main(String[] args) {
TheMotivator tm = new TheMotivator();
TheMotivator sc = new TheMotivator();
sc .createEvents();
tm.thoughtForTheDay(60);
}
}