public class Coop
{
  private Chicken theChickens[];
  private int numChickens;

  public Coop(int n)
  {
    this.numChickens = n;
    this.theChickens = new Chicken[numChickens];
    for(int i = 0; i < this.numChickens; i++)
    {
      this.theChickens[i] = new Chicken("Chicken " + i, 2, 'F', i * 1.5 + .1);
    }
  }
  
  public Chicken getChicken(int i)
  {
    return theChickens[i];
  }

  public static void main(String args[])
  {
    Coop c = new Coop(5);
    for(int i = 0; i < 5; i++)
    {
      System.out.println(c.getChicken(i));
    }
  }
}

