This is how the output should look like. http://prntscr.com/1is9htDon't use arrays cuz we haven't learned that
This is my code so far
Scanner keyboard = new Scanner(System.in);
String option= "abcdefghijklmnopqrstuvwxyz";
System.out.println("Please enter a string");
questionmarks = originalString.replaceAll(".", "?");
System.out.println("Original String: "+originalString);
System.out.println("Guessed String: "+questionmarks);
System.out.println("Characters to choose from: "+option);
System.out.println("Please guess a character");
Hangman game.txt This file contains the required code Hope it helps :)
Content will be erased after question is completed.
Enter the email address associated with your account, and we will email you a link to reset your password.
Forgot your password?