Original Post
[source lang="java"] for(int i = 0; i < BRICKS.size(); i++)
{
BRICKS.paintBrick(g);
}[/source]
at the BRICKS.paintBrick(g); line i get an error saying that the method paintBrick is undefined for ArrayList
im not exactly sure why, i think i created the arraylist right
public ArrayList BRICKS;
BRICKS = new ArrayList();
and i have the paintBrick method in my class Brick
{
BRICKS.paintBrick(g);
}[/source]
at the BRICKS.paintBrick(g); line i get an error saying that the method paintBrick is undefined for ArrayList
im not exactly sure why, i think i created the arraylist right
public ArrayList
BRICKS = new ArrayList
and i have the paintBrick method in my class Brick