Lecture 11
8
Two dimensional arrays,
nested for loops
(from Screen.java)
•
24
private char[][] pixels;
•
•
45 public void clear()
•
46 {
•
47
for (int x = 0; x < width; x++) {
48
for ( int y = 0; y < height; y++ ) {
49
pixels[x][y] = BLANK;
50
}
51
}
52
}
•