Wednesday, June 4, 2008
Java string to int
You can convert a String to integer using parseInt() method of Integer wrapper class or using valueOf() and intValue() methods together as follows.
String str = "10"; |
Subscribe to:
Posts (Atom)