Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

casting

 
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