File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes casting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "casting" Watch "casting" New topic
Author

casting

arun iyer
Greenhorn

Joined: Nov 29, 2000
Posts: 28
hi,
i have stored certain data in a text file.
I use string tokenizer and get the data in the form of a string. How can i convert string to an integer.
arun
Daniel Olson
Ranch Hand

Joined: Jan 05, 2001
Posts: 81
int num = Integer.parseInt( str );
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: casting