Hangman in Java This is not the best way to write Java code!!!! This was written with the purpose of illustrating how to get all the marks of a Java test provided to students. Ping me for the actual test, it's crap though - rather go do codewars challenges.