ok thanks for that. its a hangman game, i'm only a beginner to
java, but have done c++ before.
public static void main(){
int wrongGuesses = 0;// A Variable that counts how many wrong
// guesses have already been made. Must be < 6
StringBuffer theWord1 = new StringBuffer("*******");
// choose a
word String word2;
word2 = choose_word();
System.out.println("Hangman!!!");
System.out.println(theWord1);
System.out.println("Enter a letter ");
String guess2 = input.readLine();
char guess = guess2.charAt(0);
wrongGuesses = find_letter(guess, word2, wrongGuesses, theWord1);
// if wrongGuesses == 6, game over, user loses
// if no more letters left to guess in word, and wrongGuess < 6, user wins
}
thats the main program for it, still very sketchy, more of a skeleton than anything else.