Object.toString()
JavaDoc says:
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object.
Still, so many of the standard java classes like Collections
(Sets, Lists etc) that could have a very useful toString()
methods, don't bother implementing it. Is there a reason for this stupidity?
Or hey, would you like a hex string instead? :)
EDIT: Oops, this was my failure in using my IDE. I followed the interface instead of the implementation and that took me for some reason straight to Object.toString()
.