public void addChild(TreeNode node){
  if (children == null)   children=new ArrayList<TreeNode>();
  children.add(node);
}

public void addChild ( TreeNode node ) { if ( children == null ) children = new ArrayList < TreeNode > ( ) ; children . add ( node ) ; }
add a new child node to this node .
