Java program that takes strings as input and confirms using DFA graphing.