parse text to integer in java code example
Example: java string to int
int result = Integer.parseInt("500");
System.out.println(result) // prints 500 as int
int result = Integer.parseInt("500");
System.out.println(result) // prints 500 as int