5859606162636465666768
} public void undo() { for (int i = this.actions.size() - 1; i >= 0; i--) { Undoable action = this.actions.get(i); action.undo(); } } public boolean isEmpty() { return this.actions.isEmpty();