-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGuestService.java
More file actions
48 lines (37 loc) · 987 Bytes
/
GuestService.java
File metadata and controls
48 lines (37 loc) · 987 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package Hospital;
import java.util.Scanner;
public class GuestService
{
Guest g = new Guest();
GuestDao gd = new GuestImpl();
String id,password,age,name,gender,ICDcode;
Scanner sc = new Scanner(System.in);
public void createAccount()
{
System.out.println("Enter desired Id: ");
id = sc.next();
System.out.println("Enter desired password: ");
password = sc.next();
System.out.println("Enter Name: ");
name = sc.next();
System.out.println("Enter age: ");
age = sc.next();
System.out.println("Enter gender: ");
gender = sc.next();
System.out.println("Enter ICD code: ");
ICDcode = sc.next();
g.setId(id);
g.setPassword(password);
g.setGender(gender);
g.setName(name);
g.setAge(age);
g.setIcdCode(ICDcode);
gd.addGuest(g);
}
void hospitalDetails()
{
System.out.println("CITIUSTECH HOSPITAL");
System.out.println("AIROLI");
System.out.println("MINDSPACE");
}
}