This is my code;
import java.util.*;
class State extends HashMap<Character, State>{
boolean isFinal;
State () {
isFinal = false;
}
}
class Automaton{
private Set<State> allStates;
private Set<State> finalStates;
private State initialState;
private State currentState;
private Set<Character> alphabet;
Automaton() {
allStates = new Set<State>();
}
}