P
Ph. Barthelemy
Hi,
Sorry for asking a lame question, but I googled to find the answer and
did not find any.
is there a nice toString method for array ?
something that will concatenate the toString output of each element of
the array ?
calling the toString on a array just output gibberish ( an pointer
maybe ), but does not have the result explained above.
My problem is that I upcast objects of several Classes to Object ( the
java root class ). then I call toString on the Objects. the result is
not nice for arrays...
can I do something generic that will handle array as well as Classes ?
How can I does it ?
TIA,
--Philippe
Sorry for asking a lame question, but I googled to find the answer and
did not find any.
is there a nice toString method for array ?
something that will concatenate the toString output of each element of
the array ?
calling the toString on a array just output gibberish ( an pointer
maybe ), but does not have the result explained above.
My problem is that I upcast objects of several Classes to Object ( the
java root class ). then I call toString on the Objects. the result is
not nice for arrays...
can I do something generic that will handle array as well as Classes ?
How can I does it ?
TIA,
--Philippe