While loop
•
int counter = 0, x = 10;
•
while ( counter < 8 ) {
•
g.drawString("*", x, 20);
•
x = x + 10;
•
counter++;
// counter = counter + 1
•
}
•
•