| Author |
valueof
|
Karu Raj
Ranch Hand
Joined: Aug 31, 2005
Posts: 479
|
posted

0
|
Hi Please explain me what is valueof and longvalue do give me example ??? also let me when it shows compile error when using above methods
|
 |
marc weber
Sheriff
Joined: Aug 31, 2004
Posts: 11343
|
|
Have you checked the API documentation for Long? Have you experimented with your own code? After doing this, what are your questions?
|
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
|
 |
Niranjan Deshpande
Ranch Hand
Joined: Oct 16, 2005
Posts: 1277
|
|
hi kartik.....here is my hot tip which will help u remember the methods method name converts to xxxValue() W P parseXxxx() S P valueOf() S W so the valueOf() method converts a String primitive into a corresponding wrapper always keep in mind this little 'customized table' of mine let me know if it helps niranjan
|
SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
|
 |
Niranjan Deshpande
Ranch Hand
Joined: Oct 16, 2005
Posts: 1277
|
|
heyyyy wait in above table.... W stands for Wrapper S stands for a String primitive ( like "1" etc) P stands for a bare primitive ( like 1,2.0 etc)
|
 |
Karu Raj
Ranch Hand
Joined: Aug 31, 2005
Posts: 479
|
posted

0
|
Thats really great Wonderfull tips thanks a lot
|
 |
 |
|
|
subject: valueof
|
|
|