J2EE, Core Java, Struts, ejb, beans, applets, jdbc,spring,design patterns, web development, web services. frequently asked questions (FAQ's)
How to convert String to Number in java program?
The valueOf() function of Integer class is is used to convert string to Number. Here is the code example: String numString = "1000"; int id=Integer.valueOf(numString).intValue();
No comments:
Post a Comment