Using Java to print a name

What Java code will print the following


wing

This forum is not a free service to get others to write code for you. If you have written code that you would like help understanding or debugging, then someone here might be able to talk through it with you, but you would need to provide the code and a clear, complete explanation of what you need help with.

3 Likes

Not sure about Java. But in C with the knowledge I currently have, I’d print it one line at a time.

Something like this:

  • Save each letter in some way, maybe in its own file, or its own array.
  • Match the letters in the word you want to print to the saved letter
  • Add the first line of each saved letter to an array within an array, then the second, third etc. with each line to be printed in its own sub array
  • print the contents of each sub array with a \n between them

This is very brief and likely not the best way to solve the problem.
But perhaps it’ll help you think through it a little.

Would be interested to see what you come up with :smiley: