- import java.util class Patient static...

  • No School
  • AA 1
  • 2

This preview shows page 1 - 2 out of 2 pages.

import java.util.*; class Patient{ static Scanner read1=new Scanner(; private String ISPN; private String name; private String bloodType; private int age; private String testsResults[]=new String [3]; public static int totalNum=0; public Patient(){ String ISPN="0000"; String name=null; String bloodType=null; int age=0; for(int i=0;i<3;i++){ testsResults[i]=null; }//End for totalNum++; }//end the constructor public Patient(String ispn, String Name,int Age, String bloodT, String []TR){ ISPN=ispn; name=Name; age=Age; bloodType =bloodT ; for(int i=0;i<3;i++){ testsResults[i]=TR[i]; } totalNum++; } public void setISPN(String ISPN){ ISPN=ISPN;} public void setName(String name){ name =name ;} public void setAge(int age){ age = age; } public void setBloodType(String
Image of page 1

Subscribe to view the full document.

Image of page 2
  • Fall '19
  • Return statement, Void type, public Patient, public static int totalNum

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes