Reformat code to see problems
Remember the compiler ignores all white
space, so indentation is a convenience for us.
while (x < 3) ;
x = x +1;
if (x > 3) ;
g.drawString("x is too big", 100, 100);