Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

casting  RSS feed

 
arun iyer
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
int num = Integer.parseInt( str );
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!