Any time you want to under the last thing you did, you can press Control and Z at the same time (Ctrl+z) if you are on Windows, or Command and Z (Cmd+z) if you are on Mac. That will undo the last thing you did, even if you erased all of your code! Alternatively, you can look for the blue undo arrow in eclipse. This will do the same thing.

Did this answer your question?