Skip to content

Glossary: Java Basics

parseInt

Also written: Integer.parseInt, Double.parseDouble

Methods that convert text into a number. `Integer.parseInt("12")` gives the whole number 12; the user's typed input is always text first.

Where the book teaches it

Related terms

StringNumberFormatException