How to change characters of a string into '*'
<p>So I'm trying to make a simple Wheel of fortune type game. But I'm having a serious issue getting started. I'm just trying to convert my phrase into "*" so that it can't be seen until the user guesses what one of the letters is. Here's what I have so far:</p>

<pre><code>public class Puzzle
{
    private String solution="DOG PILE";
    private StringBuilder puzzle;



    public Puzzle(String solution)
    {

        int startindex=puzzle.indexOf(solution);
        puzzle.replace(startIndex, endIndex, "-");

    }
}
</code></pre>
