-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mood.java
58 lines (49 loc) · 1.36 KB
/
Mood.java
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package com.MRS;
import java.util.*;
public class Mood {
Login lm = new Login();
static Mood mood = new Mood();
static whats_your_mood wym = new whats_your_mood();
static SadHours sd = new SadHours();
static Lofi lofi = new Lofi();
static Premium pr = new Premium();
static public void MoodInput() {
System.out.println("1 --> What's your mood?");
System.out.println("2 --> For the Dreamer in you");
System.out.println("3 --> Lofi Moods & Moments");
System.out.println("4 --> Explore Premium Services");
System.out.println("5 --> Sign-out");
System.out.println("==================Enter your Mood from above options only==================");
mood.MoodCheck();
}
public void MoodCheck() {
Scanner sc = new Scanner(System.in);
try {
int userMoodinput =sc.nextInt();
if (userMoodinput >5 || userMoodinput<1) {
System.err.println("Invalid Option");
MoodInput();
}
switch (userMoodinput) {
case 1:
wym.userMood();
break;
case 2:
sd.typescheck();
break;
case 3:
lofi.lofimood();
break;
case 4:
pr.explorepremium();
break;
case 5:
lm.userverification();
break;
}
} catch (Throwable tr) {
System.err.println("==============Enter valid input==================");
mood.MoodCheck();
}
}
}