I have an understanding, on paper, of how to write the program
Can you post a simple list of the items you are having problems with?
Then we'll work on them one by one.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
how to get it to print the correct guessed letter with the appropriated number of blanks around it.
Create two loops. The first prints out the blanks in front, the second the blanks after.
Print the letter between the two loops.
System.out.print(" ") will print a single space. Put it in a loop.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
You need a counter to keep track of them.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
If the letter is in an array, you could get at it by using an index to the array:
theArray[ix] // gets the letter in the array at index ix
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656