int.parseInt change the String java code example Example: conversion of string to integer in java Integer.parseInt(str);