Test for integer
807597Jan 31 2005 — edited Jan 31 2005hi,
i just started learning java. I want to know how we can check whether a given string is an integer or not? I found a method "Util.isInteger(java.lang.String s)". when used this method it gave an error saying symbol not found. Alsoi tried to use this method "NumberUtils.isNumber (s)" and i mported this class
import org.apache.commons.lang.math.NumberUtils. But it says symbol not found. i have J2SE 1.5. are these methods available? please let me know!