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