Meaningless Drivel is fun!*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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 ....)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Wrapper class Functions problem
 
Similar Threads
char cannot be dereferenced
how to perform string operations on string object ?
Wrapper class Problem
Change table column sizes and horizontal scoll not working
Fun with stacks