Syntax error, maybe missing right parenthesis?

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

Sign In or Register to comment.