You did use the back of an envelope, didn't you?
The general plan for the FASaz class is:
class:FASazmethod:public boolean recognize(String str)
There is little for a constructor to do so
the default constructor will be used.
The recognize() method contains the
automaton.
(Review: ) What two ways can a string be
rejected by an automaton?