-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.java
30 lines (29 loc) · 900 Bytes
/
user.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
import java.io.*;
class user extends details
{
public static void main(String[]args)throws IOException
{
System.out.println("Press 1 if you are a new user, Press 2 if you are a old customer");
int k=s.nextInt();
user ob=new user();
switch(k)
{
case 1:
System.out.println(" Enter name:");
String naam=s.nextLine();
ob.Name(naam);
System.out.println("Enter a valid email(eg: [email protected]) and a password");
ob.login();
System.out.println("Enter your address:");
ob.address();
System.out.println("Enter your contact number");
ob.contact();
break;
case 2:
System.out.println("Enter your mail id:");
String id=s.nextLine();
ob.login(id);
break;
}
}
}