When you enter JFLAP, the first thing to do is to enter the Finite State Automata (FSA) section of JFLAP.
Your JFLAP window includes several icons, including one for creating new states, one for creating arrows representing transitions between states, and one for deleting states and transitions.
Click on the icon for creating states, and then click in your window. If you want to turn your state into an initial or final state, right-click or control-click on it and a menu will pop up that will allow you to specify what type of state it is.
Click on the icon for creating transitions (lines with arrows), and then drag your mouse from one state to another to create a transition from the first state to the second. Label the line with the symbol associated with that transition (e.g.,
0
if the transition should occur when a0
is encountered in the first state).Loops: To create a transition that loops from a state back to itself, click on the transition creation icon and then just click on the appropriate state (without dragging the cursor to another state). Label the transition as you would any other transition.
Multiple transition symbols: To create a transition that has multiple symbols (e.g., if either
0
or1
should cause a transition to another state), go through the motions of creating multiple transitions, each with one symbol. Rather than actually creating multiple arrows, JFLAP will put the multiple symbols on one arrow.