This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
And believe me, you are much more likely to remember things like this when you figure it out yourself than when someone tells you. Everyone here who has ever written more than 10 lines of code has made such mistakes...It's part of the learning process.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors