Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * This is what you have.
- */
- private void eatIfPossible()
- {
- lookForFoodInNeighborhood();
- }
- /*
- * This is what I think you should have.
- */
- private void eatIfPossible()
- {
- AlgaeColony ac;
- ac = lookForFoodInNeighborhood();
- // You can now use the data from the lookForFoodInNeighborhood
- // method in the object ac!
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement