Permalink
Browse files

hey look Jacob fixed some shit

  • Loading branch information...
1 parent b7e1187 commit bc8307b8d1e1645fcf2b416a93c01ede56b5b75a @vinnydiehl committed Feb 17, 2017
Showing with 36 additions and 25 deletions.
  1. +10 −7 src/Demo.java
  2. +4 −1 src/Doctor.java
  3. +3 −0 src/Hospital.java
  4. +19 −17 src/Patient.java
View
@@ -1,3 +1,5 @@
+package project_uno;
+import java.util.Scanner;
public class demo {
public static void main (String args[])
@@ -20,12 +22,12 @@ public static void main (String args[])
case 2: { System.out.println(h1.showDoctors());
}
- case 3: { Patient p = new Patient ("Steven ",21,"Male","eye");
- Patient p1 = new Patient ("Michael ",12,"Male","heart patient");
- Patient p2 = new Patient ("Sara ",23,"Female","earnose");
- Patient p3 = new Patient ("Amy ",31,"Female","earnose");
- Patient p5 = new Patient ("Rocky ",18,"Male","eye");
- Patient p4= new Patient ("Jessy ",15,"Male","heart patient");
+ case 3: { Patient p = new Patient ("Steven ",21," Male"," eye");
+ Patient p1 = new Patient ("Michael ",12," Male"," heart patient");
+ Patient p2 = new Patient ("Sara ",23," Female"," earnose");
+ Patient p3 = new Patient ("Amy ",31," Female"," earnose");
+ Patient p5 = new Patient ("Rocky ",18," Male"," eye");
+ Patient p4= new Patient ("Jessy ",15," Male"," heart patient");
h1.addPatient(p);
h1.addPatient(p1);
h1.addPatient(p2);
@@ -42,4 +44,5 @@ public static void main (String args[])
System.out.println("\n \n \n "+ ""+o2.getDoctorName()+""+o2.getDoctorPatientList());
}
}
- }}
+ }
+}
View
@@ -1,9 +1,12 @@
+package project_uno;
+import java.util.ArrayList;
+import java.util.List;
public class Doctor {
private String doctorName;
private String doctorSpeciality;
String doctorStatus;
- List<Patient> doctorPatientList= new ArrayList<Patient>();
+List<Patient> doctorPatientList= new ArrayList<Patient>();
Doctor(String c, String cc)
{
this.doctorName=c;
View
@@ -1,3 +1,6 @@
+package project_uno;
+import java.util.ArrayList;
+import java.util.List;
public class Hospital {
List <Doctor> doctorList = new ArrayList<Doctor>();
View
@@ -1,21 +1,23 @@
+package project_uno;
+
public class Patient {
- private String patientName;
- private int patientAge;
- private String patientGender;
- private String disease;
- Patient (String patientName, int patientAge,String patientGender, String disease)
- {
- this.patientName= patientName;
- this.patientGender= patientGender;
- this.patientAge=patientAge;
- this.disease=disease;
- }
+ private String patientName;
+ private int patientAge;
+ private String patientGender;
+ private String disease;
+ Patient (String patientName, int patientAge,String patientGender, String disease)
+ {
+ this.patientName= patientName;
+ this.patientGender= patientGender;
+ this.patientAge=patientAge;
+ this.disease=disease;
+ }
- public String getDisease()
- {return disease;}
+ public String getDisease()
+ {return disease;}
- public String toString()
- {
- return (patientName+""+patientAge+""+patientGender +" "+ disease);
- }
+ public String toString()
+ {
+ return (patientName+""+patientAge+""+patientGender +" "+ disease);
+ }
}

0 comments on commit bc8307b

Please sign in to comment.