
public class MonkeyTest
{

    public static void main (String [] args)
    {
       Monkey monkey1 = new Monkey ("George", 9, true);
       //this creates a new monkey object called myMonkey
       //with parameters passed - it therefore uses the
       //FULL Monkey constructor. 
       Monkey monkey2 = new Monkey ();
   
       System.out.print ( "Are the monkeys hungry? =>");
       System.out.println (monkey1.getHungry());
       System.out.println (monkey2.getHungry());

       System.out.println ("Feeding the monkey ...");
       monkey1.eatBanana();
       monkey2.eatBanana();
    
       System.out.println ("Is " + monkey1.getName() + " hungry NOW? => ");
       System.out.println (monkey1.getHungry());
       System.out.println ("What about " + monkey2.getName() + "? => ");
       System.out.println (monkey2.getHungry());

    }
}
