Campbell Ritchie wrote:They should be reasonably easy if you actually understand the logic behind them. Go back and read the chapter again and copy out the code and run it. Then you might understand better.
It is mentioned in the book that "Each snippet should be used only once..but they used x<1 twice in that program.Even i need to use one condition atleast twice to solve...so the problem itself is wrong
Campbell Ritchie wrote:No, there is nothing wrong with the puzzles. Please tell us the page number and what you are getting wrong.
Page no 24,chapter 1 Head First java..Check the note:
Each snippet from the pool can be used only once.
But in Ans they used x<1 condition twice ..