November 2019
Beginner
228 pages
2h 45m
English
During runtime of a computer program, the program can ask the user to input data, read the user’s input, and then show the user an output result. Scanner is the tool we use to implement the user interaction feature on the console window.
Approach 1. Add line import java.util.Scanner; at the top of your Java code, and then add the following in your main() class:
Approach 2. Type code ...
Read now
Unlock full access