Search:

Type: Posts; User: curmudgeon

Search: Search took 0.18 seconds.

  1. Re: Trying to test some basic hash functions using generic LinkedList and I'm having null pointers

    You are creating an array of object, and it doesn't matter what that object is, nothing will be held by that array except null until you put something in. Doing this, list[h].add(s) doesn't add...
  2. Re: Trying to test some basic hash functions using generic LinkedList and I'm having null pointers

    It all has to do with your creating an array of a reference type but adding no objects to the array, having essentially an array of null. Think of reference arrays as parking spaces in a parking lot....
Results 1 to 2 of 2