How To Parse String To Int Code Example

Snippet 1
  mystring = "5"
myint = int(mystring) 
Snippet 2
  Integer.parseInt(str);