Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.remoting.samples.transporter.complex;
 
 import java.util.List;
 import java.util.Map;

Author(s):
Tom Elrod
public class Information
   private static Information info = new Information();
   private static Map providers = new HashMap();
   private static List patients = new ArrayList();
   static
   {
      Doctor p1 = new Doctor("Andy Jones""financial");
      .put("financial"p1);
      Doctor p2 = new Doctor("Joe Smith""medical");
      .put("medical"p2);
      Patient pat1 = new Patient("Larry""Ellison");
      pat1.setDoctor(p1);
      p1.addPatient(pat1);
      .add(pat1);
      Patient pat2 = new Patient("Steve""Jobs");
      pat2.setDoctor(p1);
      p1.addPatient(pat2);
   }
   public static Information getInstance()
   {
      return ;
   }
   public Doctor getProviderBySpecialty(String ailmentType)
   {
      return (Doctor.get(ailmentType);
   }
   public void retireDoctor(Doctor doctor)
   {
      String specialty = doctor.getSpecialty();
      .remove(specialty);
   }
New to GrepCode? Check out our FAQ X