first time commenter here. I'm trying to add char arrays to a Binary Tree in java. The problem is that when I try to make the char array into a node (prior to adding the node to the tree), the node is not a char array but a reference. Here is my making-things-a-node class:
public class TreeNode {
char[] data;
TreeNode left, right, parent;
public TreeNode(char[] data) {
    this.data = data;
    left = right = parent = null;
}
}
and here is the line I'm using to pass the char array to the node class:
TreeNode theNode = new TreeNode(dictionary);
where dictionary is a char array.  And when I print theNode I get something like this: ([C@58623a98).  I think the problem might be with the this.data but I'm not sure.  Can anyone help me?
Update: when I print dictionary I get the char array I started with.
 
     
     
    