$30
Assignment C - Java implementation of DFA
Develop a Java implementation of the DFA class that exactly matches this posted API. Note that this class must reside in the unnamed package, thus you must not use a package statement.
There is no user interface to this class. All access is via the specified public methods. Note in particular that System.out, System.err, and System.in must not be directly accessed by your program. Also note that there is no method with signature public static void main.
Your implementation must utilize the State class as defined in this API.
For your convenience, I have provided Java source code for supporting and test classes. You should feel free to use this sample implementation of State.java while developing your DFA class. Unit test classes StateTest.java and DFATest.java utilize the JUnit testing framework. (For those familiar with the Java assert mechanism, DFANonJUnitTest.java defines a more limited test class for DFA that utilizes Java's assert rather than JUnit.) I have also provided a full set of javadocs.