Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Developers Map

Android: How to convert String to an integer on android

  • 1

How to convert string to integer:-

See the Integer class and the static parseInt() method:

Integer.parseInt(et.getText().toString());

Explaination with variables:

String mynumber =”103″;

int parsnumber = Integer.parseInt(mynumber);

SEE FULL DOCUMENT

Leave an answer

Leave an answer

Browse