src/Clases/State.java
public void addTransition (State next, char key) {
		ArrayList <State> list = this.nextState.get(key);
		
		if (list == null) {
                    list = new ArrayList<> ();
                    this.nextState.put(key, list);
		}
		list.add(next);
	}
// or create the arrayList based on key
or create the arrayList based on key
or create the arrayList based on key
public void addTransition (State next, char key) {
		ArrayList <State> list = this.nextState.get(key);
		if (list == null) {
                    list = new ArrayList<> ();
                    this.nextState.put(key, list);
		}
		list.add(next);
	}
public void addTransition ( State next , char key ) { ArrayList < State > list = this . nextState . get ( key ) ; if ( list == null ) { list = new ArrayList < > ( ) ; this . nextState . put ( key , list ) ; } list . add ( next ) ; }
or create the arrayList based on key
or create the arrayList based on key