View Single Post
  #2 (permalink)  
Old 05-10-2008, 09:56 AM
ram101 ram101 is offline
Senior Member
 
Join Date: Jun 2007
Posts: 274
Default

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();
Reply With Quote