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.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Wrapper class Functions problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Wrapper class Functions problem" Watch "Wrapper class Functions problem" New topic
Author

Wrapper class Functions problem

Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634




i tried the above code but it didn't give any error .i think valueOf and parseBoolean functions doesn't work for boolean and character
help.

OCPJP 6.0 93%
OCPJWCD 5.0 98%
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

mohitkumar gupta wrote:


i tried the above code but it didn't give any error .i think valueOf and parseBoolean functions doesn't work for boolean and character
help.


Your question isn't clear.


check this Character and Boolean API.

Which JVM version you use, because these are added after JDK1.5

|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Sahil Kapoor
Ranch Hand

Joined: Sep 12, 2009
Posts: 316
Dude, both are the valid static methods as of java 1.5.

Check API !!!


SCJP 6.0 96%

(Connecting the Dots ....)
 
Have you checked out Aspose?
 
subject: Wrapper class Functions problem
 
It's not a secret anymore!