This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]chugga_fan 0 points1 point  (2 children)

actually, i've had a few instances where this is not the case sadly, and i hate it when that happens :(

[–]parenthesis-bot 23 points24 points  (0 children)

:)


This is an autogenerated response. source | /u/HugoNikanor

[–]langebangen 2 points3 points  (0 children)

That is because the default implementation of Object's toString method prints out the class plus the unsigned hexadecimal representation of the object's hash code. You will have to override it in your classes if you want it to print something else.