How would I replace all that is not stored in the variable guess in the current Pattern with a "-"? The guess will change with different method calls. I want to replace anything that is not the char guess(in this case => 'e') with a "-".
String word = "ally";
char guess = 'e';
String currentPattern = word.replaceAll("[^guess]", "-");
Obviously, this does not work.