Having similar issue as referenced in http://www.greenfoot.org/topics/56255/0#post_107931, however instead of using a for loop, we are instructed to use a while loop. In the second loop, consisting of ten bubbles, the size of the bubbles should increase, starting with 10 for the first bubble, then 20, then 30, etc. Use the second Bubble constructor for this ( the one with one parameter). My code in the Space class is as follows:
public void setup()
{
Bubble bubble = new Bubble;
int i = 0;
while (i < bubble.length)
{
bubble = new Bubble();
addObject(bubble, i*45, i*30);
i++;
}
int x = 0;
while ( x < 10 )
{
addObject(new Bubble(),300 + x *40, 100);
x = x + 1;
}
I think I have an understanding of how to write the code- it follows the same logic as the while loop used for the 10 in the Space class but I am unclear on where I should implement this within the second constructor for the Bubble class.

