How to convert String to Number in java program?
Ask by Amit Singh
Updated 17 Sep 2020
The valueOf() function of Integer class is is used to convert string to Number.
Example:
String numString = “1000″;
int id=Integer.valueOf(numString).intValue();