|
Conversion from String to long |
|
|
You can convert a String to long using parseLong() method of Integer wrapper class or using
valueOf() and longValue() methods together as follows.
long l = Long.valueOf(str).longValue();
or
long l = Long.parseLong(str);
|
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.