This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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 );
 
wood burning stoves
 
subject: casting
 
Similar Threads
escape "&" while parsing
deleted flag in string array in B&S
How to handle Enumeration values in java.sql.Types ?!! Is it possible ?!!
Maximum length of a string???
Integer.parseInt() vs String concatenation