All pastes #719423 Raw Edit

Stuff

public text v1 · immutable
#719423 ·published 2007-09-29 08:26 UTC
rendered paste body
    public boolean checkGuess()
    {
        System.out.println(duplicateGuess);
        for( int index = 0; (index <= wordArray.length-1); index++ )
        {
            if( (charGuess == wordArray[index]) && (!duplicateGuess) )
            {
                correctGuess = true;
                //correctLetters.set(index, charGuess);
                guessedLetters.add(charGuess);
                output[i] = charGuess;
                System.out.print(" " + output[i] + " ");
            }
            else
            {
                correctGuess = false;
                System.out.print(output[i]);
            }
        }
        return correctGuess;
    }