+ 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

javacodeidappnamereader
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

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
I need help
4 Votes
Function lesson
0 Votes
How to add doubble digits
1 Votes
Я прошел тему списки полностью но, я не могу начать последнюю глажу функции в пайтоне, и горит все синим
0 Votes
Can some one help me with C# for loop Odd numbers
0 Votes
Can anyone help me write a code on python for checking palindrome numbers using while loop And pls explain it
1 Votes
Please can someone explain why the answer is 0 ?
1 Votes
Tic tac toe web game
0 Votes
# Take the number of available spaces as an input spaces = int(input()) # Display message if spaces are available if spaces <=
0 Votes
make This smaller?
0 Votes
Follow us on Linkedin
Check out our facebook
See what we tweet about
Join our instagram
Watch our Youtube
HomeProFAQContactBug Bounty ProgramCareersTerms of UsePrivacy PolicySololearn mobile
Made with
by  Sololearn | ©2023