could anyone let me know how to check whether the string is an integer? Thanks,
posted 16 years ago
Integer.parseInt(String) If the String doesn't represent an integer, the method will throw a NumberFormatException. Otherwise, it returns the value of the int. Similar methods exist in the other numeric wrapper classes as well - Float, Double, Long, etc.