My Java implementation of Automata.