import story.*;
public class Toystory {
public static void main(String[] args) {
int i, max = 5;
int nDays = 5;
WesternTown herndon = new WesternTown("Herndon, VA");
Fuzzykids joe = new Fuzzykids(10);
joe.wasNamed("Joe Fuzzy");
Nicekids jone = new Nicekids(1);
jone.wasNamed("Jone Nice");
for (i = 0; i < nDays; i++)
jone.fixIt();
for (i = 0; i < max; i++)
joe.ruinIt();
i = jone.numToys - joe.numToys;
System.out.println("Once upon a time, somewhere in " + herndon.location);
if (i == 0) {
System.out.println(jone.whatIsYourName() + " and " +
joe.whatIsYourName() + " have same number of toys.");
} else {
if (i > 0) {
System.out.println(jone.whatIsYourName() + " has " + i +
" more toys than " + joe.whatIsYourName());
} else {
System.out.println(joe.whatIsYourName() + " has " + i +
" more toys than " + jone.whatIsYourName());
}
}
Kids anonymous = new Kids();
jone.callProtected();
System.out.println("There is another kid who has " +
anonymous.numToys + " toy.");
System.out.println("\n\t\tThe End.");
}
}