A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Dec 24, 2007
Jul 08, 2008 22:26:00
How many purposes are there for toString().One I know is to give meaning to an object, despite getting any ununderstandable code.
Tell me other uses.
Joined: Oct 13, 2005
Jul 09, 2008 09:41:00
Isn't that enough for it to do? I trust you have read
about it in the Object class?
Joined: Nov 07, 2000
Jul 09, 2008 11:10:00
toString() has one and only intention is to give a meaning human understandable
to an Object.
I agree. Here's the link:
finding the servlet's base host
why new date() prints date ?????
How to get body-content value in my custom tag?
Printing object location Not contents
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014