public boolean isFinalState(int state){
  return (state < 0) ? false : fFinalStateFlags[state];
}

public boolean isFinalState ( int state ) { return ( state < 0 ) ? false : fFinalStateFlags [ state ] ; }
check whether the given state is one of the final states
