/** * * @author junqi */ public class Hangman { // instant variable or attributes of the class private String secretword; int correct=0 ; int wrong= 0 ; int total= 0 ; char [] newDisguise; public void disguisedword() { char [] Disguseses = new char [secretword.length()]; // create a char array with the length of secretword for(int i = 0;i>"); System.out.println(""); newDisguise = Disguseses; // assigning this local char array variable to instant char array variable } public void SecretWord(String Secretword) { this.secretword = Secretword; // assigning value to attribute secretword } public boolean makeGuess(String guess) { boolean complete = false; // set to false int found = 0; // if its not completed int cfound = 0; // correct guess for(int i = 0;i>"); System.out.println(""); System.out.println(""); for(int i = 0;i