This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
You are not allowed to place assignments (=) in if statements. You are only allowed to make comparisons in if statements (==) and call methods that return boolean. This is a Java build-in security checking mechanism.