+ 1

How to make name checker

How to make java code that asks you a for your name and then prints it in output? https://code.sololearn.com/c78Nav8nWluc/?ref=app

8th Oct 2017, 8:26 AM
Lukáš Dršman
Lukáš Dršman - avatar
4 Answers
+ 6
System.out.println("What is your name:"); String name = new Scanner(System.in).nextLine(); System.out.println(name);
8th Oct 2017, 8:40 AM
Vukan
Vukan - avatar
+ 1
Thank you for help!
8th Oct 2017, 4:30 PM
Lukáš Dršman
Lukáš Dršman - avatar