Hi Rob,
u can convert a string to int using the way suggested by Stijn147, but it will be better if u put it in a try-catch block, as it can throw NumberFormatException. The more complete way thus is:-
try{
int intIntegerForm = Integer.parseInt(strStringForm);
}catch(NumberFormatException...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.