A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Joined: Mar 30, 2004
Sep 30, 2004 08:05:00
The code snippet :
give ans 12.
But valueOf method takes a
as an argument .
How this happens?
"The will to win is worthless if you do not have the will to prepare"
Joined: Aug 03, 2002
Sep 30, 2004 08:27:00
I suggest that you take another, closer loook at the String API.
Ask a Meaningful Question
Getting someone to think and try something out is much more useful than just telling them the answer.
subject: valueOf() method
Some string questions
Difference between valueOf()Method and toString()Method
Have a question about convert int to string
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015