-1

How do I convert string to integer?

I have tries many ways and it seems to be showing some error. example "100" which is in integer format"

 email.get(0);
CoderDecoder
  • 445
  • 4
  • 18

1 Answers1

2

You can parse like following code:

int a = Integer.parseInt(email.get(0));
Shayan Pourvatan
  • 11,898
  • 4
  • 42
  • 63
Muthuraja
  • 551
  • 5
  • 13