Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

When convert char array to String get weird characters

807589Aug 25 2008 — edited Aug 25 2008
Hi,everyone

I'm trying to convert a char array to String like this:
String cadenaSeries = new String(seriesChar);
when output to screen:
 System.out.println(cadenaSeries);
then get this:
5cd46fff9bb4e35ef5be37d5787de4a7[][][][][][]
which is ok but the square characters are not part of the char array
(sorry don't know square character code so put []).

If anyone could give an advice on this would be great.

Thanks in advance,
Daniel Meza.

(Sorry my english is not good as I'd like I'm still learning)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 22 2008
Added on Aug 25 2008
5 comments
644 views