Please enable JavaScript to use CodeHS

AP Computer Science A (Mocha)

Lesson 2.3 User Input

Description

In this lesson, students will learn how to retrieve user input by various methods including readLine, readInt, readDouble, and readBoolean. This will allow them to take in data from the user to make our programs work for them.


Objective

Students will be able to ask for user input and print out the input in the console program by using readLine, readInt, readDouble, and/or readBoolean.