type casting from string to int in java code example Example: string to int int i=Integer.parseInt("200");