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 ответ
+ 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