A simple Java implementation of the game hangman