This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes validation- is it a number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "validation- is it a number" Watch "validation- is it a number" New topic
Author

validation- is it a number

David Shepherd
Ranch Hand

Joined: Mar 02, 2001
Posts: 35
I am looking for the easy way to validate a string and take action if the input string is a number (or can be parsed into a number). Is there an easy way to check a string to see if it can be turned into an integer?
Thanks.
Angela Lamb
Ranch Hand

Joined: Feb 22, 2001
Posts: 156
There are functions in the Integer class for this:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validation- is it a number
 
It's not a secret anymore!