Java for Beginners Part 21: toString()

11m 6s
Caveofprogramming

Cave of Programming

After working as a software developer and contractor for over 14 years for a whole bunch of companies including CSC, Proquest, SPSS and AT&T in the UK and... Read more

A tutorial on the toString() method in Java.

toString() is a method of the Object class, which is the ultimate parent of all objects in Java. By over-riding it, you can implement a way to create a string representation of your object.