@@ -0,0 +1,607 @@
+public class StateContext %7B%0A    private Statelike myState;%0A        /**%0A         * Standard constructor%0A         */%0A    public StateContext() %7B%0A        setState(new StateA());%0A    %7D%0A%0A        /**%0A         * Setter method for the state.%0A         * Normally only called by classes implementing the State interface.%0A         * @param NEW_STATE%0A         */%0A    public void setState(final Statelike NEW_STATE) %7B%0A        myState = NEW_STATE;%0A    %7D%0A%0A        /**%0A         * Writer method%0A         * @param NAME%0A         */%0A    public void writeName(final String NAME) %7B%0A        myState.writeName(this, NAME);%0A    %7D%0A%7D%0A

Create StateContext.java