This puzzle has made me question my decision to buy the book. I understand the replies I could never come up with the solution. I have had a very limited programming background and that was ten years ago. So I suppose I do not meet the prerequisites. Is there a better book out there for folks not smart enough for the Head First books?
BTW, while I understand the replies, it took me four tries with the solution in hand to work it out on paper. This just seems to be too much difficulty this early in the book.