Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.remoting.samples.transporter.complex;
 

Author(s):
Tom Elrod
 
 public class Patient
 {
   private String firstName = null;
   private String lastName = null;
   private Doctor doctor = null;
   private String ailmentType = null;
   private String ailmentDescription = null;
   private Patient()
   {
   }
   public Patient(String firstNameString lastName)
   {
      this. = firstName;
      this. = lastName;
   }
   public void setDoctor(Doctor doctor)
   {
      this. = doctor;
   }
   public String toString()
   {
      return "\nPatient:\n\tName: " +  + " " +  + "\n\tAilment - Type: " +  +
             ", Description: " +  + ( != null ? ("\n\tDoctor - Name: " + .getFullName()) : "") + "\n";
   }
   public void setAilmentType(String ailmentType)
   {
      this. = ailmentType;
   }
   public void setAilmentDescription(String ailmentDesc)
   {
      this. = ailmentDesc;
   }
   public String getAilmentType()
   {
      return ;
   }
New to GrepCode? Check out our FAQ X