We are about to switch to a new forum software. Until then we have removed the registration on this forum.
ArrayList<Cell> cells;
cells=new ArrayList<Cell>();
for (int i=0; i<900; i++) {
cells.add(new Cell(i, i-hheight, 15, (q, 0, 0), 100, 50));
}
class Cell {
private int x, int y, int speed, color c, int wwidth, int hheight;
Cell(int xpos, int ypos, int speedy, color col, int widthh, int heightt) {
x=xpos;
y=ypos;
speed=speedy;
c=col;
wwidth=widthh;
hheight=heightt;
}
}
Answers
nevermind fixed it. line 4 needed color to be added.