java read string as int code example
Example 1: java convert String to int
int i = Integer.parseInt(myString);
Example 2: conversion of string to integer in java
Integer.parseInt(str);
int i = Integer.parseInt(myString);
Integer.parseInt(str);