Sorry, but your question is much too vague. What kind of node do you want to create? Are you writing your own classes to represent a tree structure? Do you understand how to create a node with 3 or less leaves? So why is creating a node with more than 3 leaves difficult? What does your source code look like?
sounds like you want to build a tree ? the parent needs to have a datastructure that holds all the child nodes (e.g. a Set) then in your (parent) node you need a method like addChild(SomeObject obj) which adds the object to the datastructure. also you will need methods to retrieve the childreen and so on...
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop