• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help with basic assignment please  RSS feed

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using the Lab 1 Hello World assignment from Module 1, add the following:

Prompt the user to enter their name.
Print out the word "Hello" with the user's name before printing out "Hello World!"
For example, if the user enters "Kermit" as their name then print out the following:

"Hello Kermit!  Hello World!"

Don't forget to print a space between the two sentences!




this is what I thought I should do but its not working, sorry I am a total noob please help
 
Ed Palazo
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Something like this?


 
Ed Palazo
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it

 
Sheriff
Posts: 4298
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for posting the solution.
 
Marshal
Posts: 56610
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Challenge: Change it so you can write
java HelloApp Campbell
and it prints
Hello, Campbell
Hint: look here in the Java™ Tutorials.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!