I need to write a method to undo the preceding step. For example: I'll add "Hello" to the LinkedList and then decide to undo it. My idea is to clone the LinkedList and then if the user calls undo, I'll just assign the cloned copy to the LinkedList.
Does someone have a better idea?