0
User input
Hi, Iām new to Java, Iāve used Python for about 3 years and Iāve had to switch for my a level course, how do I get a user input?
1 Answer
+ 1
create a scanner object with system.in
Scanner scan = new Scanner(System.in);
then read using nextLine method. you can see other method here https://docs.oracle.com/javase/8/docs/api/java/util/Scanner.html