-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHospital_Final.java
More file actions
30 lines (28 loc) · 835 Bytes
/
Copy pathHospital_Final.java
File metadata and controls
30 lines (28 loc) · 835 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
import java.util.Scanner;
class Hospital{
int PatientID;
String Name;
String Disease;
public Hospital(int PatientID,String name,String Disease){
this.Name=name;
this.PatientID=PatientID;
this.Disease=Disease;
}
public void Displayinfo(){
System.out.println("PatientID:"+this.PatientID);
System.out.println("Name:"+this.Name);
System.out.println("Disease:"+this.Disease);
}
}
public class Hospital_Final {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int options;
while(true){
System.out.println("1.Add Patient 2.Display Patient 3.End\nEnter: ");
options=sc.nextInt();
if(options==1){
}
}
}
}