You'd do it the other way. Start with a String of all *s and change them to the letters as they were guessed.
Several ways to get a Sting of *s. Take the length of the word and use it to substring...
Type: Posts; User: Norm
You'd do it the other way. Start with a String of all *s and change them to the letters as they were guessed.
Several ways to get a Sting of *s. Take the length of the word and use it to substring...
Use the StringBuilder class to hold the letters of the word. You can index into the word and set the letters values.
Then create a String from the contents of the StringBuilder object.