|
Conversion from String to integer |
|
|
You can convert a String to integer using parseInt() method of Integer wrapper class or using
valueOf() and intValue() methods together as follows.
str = "25";
int i = Integer.valueOf(str).intValue();
or
int i = Integer.parseInt(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.