View Single Post
  #5 (permalink)  
Old 26-11-2009, 07:37 AM
Json's Avatar
Json Json is online now
Super Moderator
 

Join Date: Jul 2009
Location: Manchester, United Kingdom
Posts: 1,188
Thanks: 57
Thanked 137 Times in 133 Posts
Json will become famous soon enoughJson will become famous soon enoughJson will become famous soon enough

I'm feeling Happy
Default Re: need to know if the object is a number or character

Or you can have a look at [Apache-SVN] Contents of /commons/proper/lang/trunk/src/java/org/apache/commons/lang/math/NumberUtils.java

Search for a method called isNumber

For the people out there trying to do things with strings etc, just look into apache commons already, its absolutely brilliant and will cover most of your needs.

// Json
Reply With Quote