Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
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 ```