Example
Read moreWhat does input () do in Java?
Input refers to text written by the user read by the program . Input is always read as a string. For reading input, we use the Scanner tool that comes with Java. The tool can be imported for use in a program by adding the command import java.
Read moreHow do we take input and display output in Java?
Java IO : Input-output in Java with Examples
Read more