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...
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with: