public class SpeciesFirstTryDemo
1:
2: public class SpeciesFirstTryDemo
3: {
4: public static void main(String[] args)
5: {
6: SpeciesFirstTry speciesOfTheMonth = new SpeciesFirstTry( );
7: int futurePopulation;
8: System.out.println("Enter data on the Species of the Month:");
9: speciesOfTheMonth.readInput( );
10: speciesOfTheMonth.writeOutput( );
11: futurePopulation = speciesOfTheMonth.populationIn10( );
12: System.out.println("In ten years the population will be "
13: + futurePopulation);
14: speciesOfTheMonth.name = "Klingon ox";
15: speciesOfTheMonth.population = 10;
16: speciesOfTheMonth.growthRate = 15;
17: System.out.println("The new Species of the Month:");
18: speciesOfTheMonth.writeOutput( );
19: System.out.println("In ten years the population will be "
20: + speciesOfTheMonth.populationIn10( ));
21: }
22: }
23:
24:
25: