I have this code right now. What I'm trying to do is slowly make the circle bigger until it fully covers the background. What I have so far:
public class GamingProject
static Console c;
public static void main (String args)
c = new Console ();
//Beginning words to set background
Font newFont = new Font("Times New Roman",1,20);
c.drawString ("Before the quiz begin, we would just like to ask which one",0,15);
c.drawString ("of these colors is your favorite color?",0,30);
c.drawString ("My favorite colour is: ",0,155);
backgroundColor = c.readLine();
int y = 150;
int x = 215;
if (backgroundColor.equalsIgnoreCase ("blue"))
for (y = 150; y <=300; y++)
c.fillOval (215, y,20,20);
for (int counter = 0; counter <2147000000; counter++)
(I have more code here but it's unnecessary)
The problem is highlighted in red. It says " "}" is inserted to complete Statement No Short If"
What does that mean?
Are there other ways to make my circle grow bigger?