how to convert a string into an in java s code example Example: string to int java int result = Integer.parseInt(number);