/** EcoSystem will model the interactions between species in
 *  an ecosystem.
 */
public class EcoSystem {
  public static void main(String[] args) {
    // create a species with 7 members, name "gnu gnusance"
    // birthRate of 0.2, and a maximum population of 3000
    Species gnu= new Species(7,"gnu gnusance",0.2,3000);

    // print its population
    System.out.println("gnu population: "+ gnu.getPopulation());

    // go through breed()/dieOff() cycles
    for (int i=0; i<100; i++) {
      gnu.breed();
      gnu.dieOff();
      System.out.println("New population: " + gnu.getPopulation());
    }
  }
}

