In the lab exercise, the following lines of code give "abc" as the
output.
char[] charArrayData = { 'a', 'b', 'c' };
System.out.println(charArrayData);
However, I was playing around a little bit more and wanted to add in
some text in front of the output to describe the value. When I put in
the following code, the charArrayData value bcomes: "[EMAIL PROTECTED]"
instead of "abc"
char[] charArrayData = { 'a', 'b', 'c' };
System.out.println("Char Array Data: " + charArrayData);
Any idea why?
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---