| Author |
convert
|
Jackie Wang
Ranch Hand
Joined: Apr 18, 2002
Posts: 315
|
|
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
Joined: Aug 03, 2002
Posts: 7729
|
|
|
Take a look at the static methods of the Integer class, especially parseInt() and toString().
|
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
|
 |
 |
|
|
subject: convert
|
|
|