For the question below..
* 3a. The updateImage() method creates a Greenfoot image object that
* contains a certain number of crumbs (as specified by nCrumbs) at random
* locations. Choose x and y values so that all of the crumbs appear in the
* image. None of them should be cropped by the border of the image; each
* crumb is a circle with a diameter of three. (Hint: Use the fillOval() method to create a circle.)
I came up with...
Not sure if this is on the right track and not sure how to draw the circle with filloval.
public void updateImage()
{
GreenfootImage getImage; // Initialize image variable (already declared) as a new Image object
int locX;
int locY; // declare local variables x and y
for (int i = 0; i < nCrumbs; i++) { // For-loop that counts up to the total number of crumbs in the Food object
locX = Greenfoot.getRandomNumber(100); // Pick a random x for the crumb's center--random, not Gaussian
locY = Greenfoot.getRandomNumber(100); // Pick a random y for the crumb's center--random, not Gaussian
// Draw a solid circle centered at x and y with diameter 3
}
setImage(image);
}

