Advertisement
ZiphTech

Untitled

Dec 19th, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1.             /*
  2.              * This is what you have.
  3.              */
  4.             private void eatIfPossible()
  5.             {
  6.                 lookForFoodInNeighborhood();
  7.             }
  8.            
  9.             /*
  10.              * This is what I think you should have.
  11.              */
  12.             private void eatIfPossible()
  13.             {
  14.                 AlgaeColony ac;
  15.                 ac = lookForFoodInNeighborhood();
  16.                
  17.                 // You can now use the data from the lookForFoodInNeighborhood
  18.                 // method in the object ac!
  19.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement