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