Thread
:
Java Interview - String to Number in java program
View Single Post
#
2
(
permalink
)
05-10-2008, 09:56 AM
ram101
Senior Member
Join Date: Jun 2007
Posts: 274
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();
ram101
View Public Profile
Send a private message to ram101
Find all posts by ram101