/** EcoSystem will model the interactions between species in
 *  an ecosystem.
 */
public class EcoSystem{
  // main method is what Java "runs"
  public static void main(String[] args){
    // create a Species
    Species gnu= new Species();

    // print it:
    System.out.println("New species: "+gnu);

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

    // change its population
    gnu.setPopulation(7);

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

    //add another species, plus species names
    Species gnat;
    gnat= new Species();
    gnat.setName("gnat gnattus");
    gnat.setPopulation(1000);
    gnu.setName("gnu gnusance");
  }
}

