public void setCmd(Character way, int cmd) {Cell c = at(way);if (c == null) {c = new Cell();c.cmd = cmd;cells.put(way, c);} else {c.cmd = cmd;}c.cnt = (cmd >= 0) ? 1 : 0;}
public void SetCmd(char way, int cmd){Cell c = At(way);if (c == null){c = new Cell();c.cmd = cmd;cells[way] = c;}else{c.cmd = cmd;}c.cnt = (cmd >= 0) ? 1 : 0;}