-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPage.java
47 lines (40 loc) · 1.06 KB
/
MainPage.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
import java.util.*;
public class MainPage {
static void intro() {
System.out.println("Hello!!");
System.out.println();
System.out.println("Fruitables - totally organic!!");
//System.out.println();
System.out.println("Delivery at your door step!");
}
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
ContactUs ob = new ContactUs();
Userend user = new Userend();
AdminMainPage admin = new AdminMainPage();
MainPage.intro();System.out.println();
ob.contactus();System.out.println();
System.out.println("Enter 1 to Login and 2 to Signup 3 if you are admin");
int login=sc.nextInt();
int x=0;
do {
if(login == 1) {
user.login(); x=1;
}
else if (login == 2) {
user.signup();x=1;
}
/* }
else if(login == 3)
{
admin.welcome();
}
*/
else {
System.out.println("You have entered the wrong input!");
System.out.println("Choose between 1 and 2");
}
}while(x!=1);
}
}