This post will address the problem of implementing finite states machines into java. If you don’t know what FSM are…