Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wrapper class Functions problem

 
Mohit G Gupta
Ranch Hand
Posts: 634
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



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.
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sahil Kapoor
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dude, both are the valid static methods as of java 1.5.

Check API !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic