Carey Brown wrote:Some minor suggestions.
Make things that don't change into constants, e.g. INPUT, RAND, WORDS.
You could use StringBuilder instead of a char. Builder is very similar to a String but is muttable so you can add and delete directly.
Make the loop that checks to see if you want to play again separate from the actual play loop.
Make getRandomWord() method which allows future enhancement to get words from file for example.
fred rosenberger wrote:We don't have those specs, so we can't actually tell you if it is correct or not.