Methods #3


1. Call these methods. Make sure to catch the result if they return something.


       void eat (String food) {}

       double getDinnerTime(){}

       String getFavoriteFood(String personsName){}

       void chomp(){}

       boolean isTasty(){}



2. Now do the opposite…. create method signatures for these calls.


       JFrame window = getWindow();

       int slices = getNumberOfPizzaSlicesLeft();

       String faveVeggie = getFavoriteVegetable(“Mom”);

       peel(“potato”);

       boolean healthyOrNot = isHealthy(“avocado”);

       simmer(“soup”);