java string to int

Java
int result = Integer.parseInt(number);String example = "1";
int converted = Integer.parseInt(example);	String number = "10";
	int result = Integer.parseInt(number);			
	System.out.println(result);
Copy	String number = "10";
	int result = Integer.parseInt(number);			
	System.out.println(result);
int i = Integer.parseInt(myString);String myString = "1234";
int foo = Integer.parseInt(myString);
Source

Also in Java: