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