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...
Type: Posts; User: curmudgeon
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...
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....