Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Test for integer

807597Jan 31 2005 — edited Jan 31 2005
hi,
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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2005
Added on Jan 31 2005
2 comments
120 views