A possible discussion topic:
Even after I got done improving the Token
class
in the version of TokenStream.java I provided
for your lab, it still has at least one problem. This class inherits
the definitions of the equals
and hashCode
methods from the Object
class, rather than overriding
those definitions with its own. Why is that a problem? What should
the definitions be?