Re: confused
- From: Real Gagnon <realgagnon_@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 29 Oct 2005 17:21:16 GMT
> I don't understand why Real wrote the code the way he did. The call to
> toArray() is unnecessary, as is the cast to Integer. Nevertheless, it
> should work.
The original OP was saying that i didn't understand what was going on. The
proposed toString() is very simple to follow : convert to an Array,
iterate whith a loop and build a String with each element. There is maybe a
better way to do it but this is one is easy to follow.
Bye.
--
Real Gagnon from Quebec, Canada
* Looking for Java or PB code examples ? Visit Real's How-to
* http://www.rgagnon.com/howto.html
.
- References:
- Re: confused
- From: CPSCmajor
- Re: confused
- Prev by Date: Converting int to string
- Next by Date: Re: Converting int to string
- Previous by thread: Re: confused
- Next by thread: Re: confused
- Index(es):