Skip to main content

Draw the tree in java

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2012-01-17

Can you help me to draw the tree? First we assign the parent node. when child node(x) come we must check the condition. there are three condition such as x<5,5<=x<10 and 10<=x<15 after that we have to add the child in order to condition. Here we have more than two children. After that we want to calculate the average of children and create a parent which average of children.Like following tree.