convert string to int java typecast code example Example: conversion of string to integer in java Integer.parseInt(str);