Java based implementation of a Finite State Automata for CS-260