Hot answers tagged

1

You cannot simply print a class. If you want to do so, you have to add a toString() method to it. See e.g. http://stackoverflow.com/questions/8555771/why-is-the-tostring-method-being-called-when-i-print-an-object or http://stackoverflow.com/questions/8001664/how-to-create-a-println-print-method-for-a-custom-class or ...



Only top voted, non community-wiki answers of a minimum length are eligible