John Jai wrote:But it looks okay to me as the authors have clearly mentioned in the picture title - "Common Wrapper Conversion Methods" and not "All".
Hmmm, I don't buy that. It would be fine if they simply didn't mention parseXxx at all - then your argument would apply. But they do have a row for the parseXxx methods - and on that row, an X is supposed to indicate the method exists, and a lack of an X indicates it does not. The table was correct for an earlier version of Java, but it looks like that new parse method was overlooked for the last two editions of the book. At least one valueOf() method was overlooked as well. Maybe more.
Joined: May 31, 2011
I agree to that, Mike.
Joined: Oct 13, 2005
Agree with Mike S; the parseBoolean() method has been around for nearly eight years, and even I have used it