Nathan Doe wrote:The arrays are sized to two exact files my professor gave us and the program is built to only read those two files. What I don't get is how can there be a Null Pointer Exception if every one of the previous data structures (Array List, Hash Set, Linked List) can read the data fine before getting to the TreeSet? When I comment out the whole TreeSet benchmarking section the program runs fine, just when it is uncommented do I get a null pointer exception. Is there some kind of special rule for TreeSets I don't know about and need to implement in my code?
Nathan Doe wrote:Ok, so it looks like I made the Array "last" one spot too big which the TreeSet didn't like. Im guessing that TreeSets don't accept null values for positions in them where as the other data structures just store the null value.
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
Download Free Java APIs to Work with Office Files and PDFhtttp://www.e-iceblue.com/free-apis.html