• Post Reply Bookmark Topic Watch Topic
  • New Topic

convert  RSS feed

 
Jackie Wang
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there are a lot of ways to convert a string to integer and interger to string.
what's the shortest code and what's the most efficient way to do that?
thanks!
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the static methods of the Integer class, especially parseInt() and toString().
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!