This class defines a method called tostring(). This method does not override the toString() method in java.lang.Object, which is probably what was intended.
tostring()
toString()
java.lang.Object