Check out example codes for "java strin to int". It will help you in understanding the concepts better.

Code Example 1

String myString = "1234";
int foo = Integer.parseInt(myString);

Learn ReactJs, React Native from akashmittal.com