converver String em int Java code example
Example 1: string a int java
String number = "1"
int num = Integer.parseInt (name);
//num equals 1
Example 2: convert a string to int in java
String myString = "1234";
int foo = Integer.parseInt(myString);