Please enable JavaScript to use CodeHS

CodeHS Glossary


readInt Java

Java method that lets us read in an integer input from the user. For example in this program: ``` int age = readInt("Enter your age: "); System.out.println("Your age is: " + age); ``` If the user inputs 16, the output will be: ``` Your age is 16 ```