I was experimenting with toCharArray() and found some strange behavior.
toCharArray()
Suppose private static final char[] HEX_CHARS = \"0123456789abcdef\".toCha
private static final char[] HEX_CHARS = \"0123456789abcdef\".toCha
The first line calls the method
print(char[] s)
on the PrintStream which prints what you expect. The second one calls the method
print(String s)
Where is concatenating the string with the toString implementation of the array which is that ugly thing you get ([C@19821f).