Omletti wrote...
@danpost I tried it, but then all lines in which "getX" or "getY" appear are highlighted :((
and it says "cannot find symbol - method getX()"

1 2 3 4 5 6 7 8 9 10 11 12 | // in pseudo-code public void act() { for each cell { count neighbors } for each cell { use neighbors counted to determine new state } } |