More on if.
if (x > 3) ;
   g.drawString("x is too big", 50, 50);