树节点的定义 树节点的定义public class TreeNode { public int val; public TreeNode left,right; public TreeNode(int val) { this.val = val; this.left = null; this.right = null; }}