+ 1
If you're asking what Scanner is for, you can utilize it to "scan" the System Input so that you can obtain input from the user. https://code.sololearn.com/c02h5SPR1EF3/#java Example: import java.util.Scanner; public class Program { public static void main(String[] args) { String name = ""; Scanner scnr = new Scanner(System.in); name = scnr.nextLine(); System.out.println(name); } }
10th Apr 2018, 7:08 PM
Fata1 Err0r
Fata1 Err0r - avatar