aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes String.. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "String.." Watch "String.." New topic
Author

String..

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
could anyone let me know how to check whether the string is an integer?
Thanks,
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18670
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.


"I'm not back." - Bill Harding, Twister
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: String..
 
Similar Threads
How to convert byte array into string array?
date format with MS Access database
Tech Word Game
WA #1.....word association
ResultSet to Array