How to transform a variable of the type «String» to the integer?
1
Expert's answer
2010-09-15T12:16:09-0400
You have to use the class «Integer», call the method «parseInt», as the parameter pass the string value or string variable. But you have to be ready for the exception (if it is impossible), which should be processed properly.
Comments
Leave a comment