public void direDeDormir() {
  System.out.println("Allez tout le monde, on dort !");
  Animal a;
  for (java.util.Iterator i =
         this.surveillant.pensionnaire.iterator();
	     i.hasNext(); ) {
        a = (Animal) i.next();
        a.dormir();
  }
}

public static void main(String[] args) {
    Ours oscar = new Ours("Oscar");
    Girafe gudule = new Girafe("Gudule");
    Girafe gertrude = new Girafe("Gertrude");
    Gardien jean_pierre = new Gardien();
    jean_pierre.surveillant = new Zoo();
    java.util.Vector tous = jean_pierre.surveillant.pensionnaire;
    tous.addElement(oscar);
    tous.addElement(gudule);
    tous.addElement(gertrude);
    jean_pierre.direDeDormir();
}
