I was experimenting with toCharArray()
and found some strange behavior.
Suppose private static final char[] HEX_CHARS = "0123456789abcdef".toCharArray();
System.out.println(HEX_CHARS);
/* prints 0123456789abcdef */
System.out.println("this is HEX_CHARS "+HEX_CHARS);
/* prints [C@19821f */
Any theoretical reason behind this?
char[]
, useArrays.toString()
fromjava.util.Arrays
.