+ 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
2 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