Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

String to Int

 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please help.
I want to convert 5 stored as String into a int. type.
How do I do it?
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the Integer.parseInt() method.

Rob
 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rob.
you saved me just in time.
I hope this is the best way to do it.
Thanks,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic