-Almost completed the Java-syntax-recognizing class