implement b+tree

Posted 07 December 2009 - 05:44 PM

I want to implement b+ tree with java but I can not . I have class b+tree code form other web. I create a main function but not work.
It have error :
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
insert key=1 at java.lang.System.arraycopy(Native Method)
at bxtree.BxTree$LNode.insertNonfull(Main.java:161)
at bxtree.BxTree$LNode.insert(Main.java:149)
at bxtree.BxTree.insert(Main.java:51)
at bxtree.Main.main(Main.java:21)

Re: implement b+tree

Posted 22 December 2009 - 08:27 PM

wr_pui, on 7 Dec, 2009 - 04:44 PM, said:

I want to implement b+ tree with java but I can not . I have class b+tree code form other web. I create a main function but not work.
It have error :
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException

Wait a minute...
Are you telling us that you cut & paste these few hundred lines of code from the net (you didn't wrote them)
and now you want us to debug them for you ?