Hi Guys,
Been on the boards for a while answering other people's queries. I think it's high time I posed my problems to you
I am working on implementing a
2-3 Tree and I am at the end of my wits trying to get this figured out (lack of sleep has something to do with it

). Here is a nice
applet that further shows how the tree works.
I am having trouble trying to "split" the nodes right. Here is my code so far.. it is a bit much and if some parts don't make sense please ask for clarification.
I am using a TreeNode class that looks like
And my TwoThreeTree makes use of this node to build the tree.
Lots of code.. I am sorry. But I think it is fairly straightforward at this point and it works correctly for the first 3 values. It's the 4th value that it flounders at. I have put the comments //Problem Child at those parts.
If anyone has seen 2-3 Trees before and knows a better way of doing this, please kindly point me in the right direction.
My code is loosely based on the pseudo code provided in the wikipedia
link at the bottom of the 2-3 Tree description. Again any help will be greatly appreciated.