did you run the program and see the exception..??? cause as far as i see the program should not throw any exception... it wont actually compile cause this you should close it with ) noot }... apart from that the program is fine anyway please quote your sources so its also easier for us [ November 26, 2007: Message edited by: abhishek pendkay ]
The significant problems we face cannot be solved by the same level of thinking which created them – Einstein SCJP 1.5, SCWCD, SCBCD in the making
Exception in thread "main" java.lang.Error: Unresolved compilation problems: Type mismatch: cannot convert from boolean to Boolean
After fixing the brackets and one's to el's (or vice-versa) boxing does indeed work for me. No need to convert everything to a primitive. Are you sure eclipse is compiling your code under 1.5? Check your preferences->Java->compiler setting.
We're very happy that you're using our book to help you in your studies, and you are more than welcome to post mock questions from the book here in this forum for discussion. Speaking for myself and for all authors of mock exam questions, from now on, we need you to tell everyone the source of the mock exam question you're discussing.
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
If you like strawberry rhubarb pie, try blueberry rhubarb (bluebarb) pie. And try this tiny ad: