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?

5th Oct 2019, 6:02 AM
Slugrat
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
5th Oct 2019, 6:04 AM
Taste
Taste - avatar