-
Looping question
I've got a question about loops. I'm kind of confused on how to print things out on a different line. I want to display my objects one on top of the other but they print out horizontally. What is recommended to do this
Code:
public void draw(Graphics page)
{
page.setColor(color);
for (int f = 1; f <= numrows; f++)
{
for (int r = 1; r <= numsquares; r++)
{
draw(page);
setX(getX() + getLength());
system.out.println();
}
}
}
-
Quote:
system.out.println();
emmm...
Quote:
System.out.println();
:rolleyes:
P.S. I dearly hope I understood the question...