HOW TO CONVERT STRING TO NUMBER IN JAVA PROGRAM?

Amit Singh

Total Post:565

Points:2825
Posted by  Amit Singh
Java 
 1365  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:565

    Points:2825
    How to convert String to Number in java program?

    The valueOf() function of Integer class is is used to convert string to Number.

    Example:

    String numString = “1000″;
    int id=Integer.valueOf(numString).intValue();

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!