is this possible

Hello to all,

I'm taking a Java class in high school and my teacher told us to create a word game type program with the basic principles of hangman. My problem is that I want the answer to be a string that is updated with the correct answers and for the incorrect answers to go to another. I am not sure how to do this except with a whole lot of if statements, except if I could modify what is in the index of the string. I may have lost people in my poorly worded description, and probably bad spelling, but if you can help it would be nice.

[556 byte] By [turkeya] at [2007-10-2 7:40:52]
# 1
How about using an if statement, one branch for correct answers, the other for the incorrect. In each branch, define a string of zero length (String str = "";); then for each answer, add the answer to the end of the the appropriate string. Then print the string.
ChuckBinga at 2007-7-16 21:24:39 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
thanks, i didn't think of that. ill try and see if it works.
turkeya at 2007-7-16 21:24:39 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...