First of all define the array size where each element is a LinkedList.
LinkedList hashTable[] = new LinkedList[10];
Now since each element in the array is a LinkedList
itself and all of them are null
each of them needs to be initialized. Hence,
for (int i=0;i<10;i++)
hashTable[i] = new LinkedList();
If you want to add data to a list, then do it like this:
hashTable[i].add(YOUR_LONG_DATA_HERE);
and finally to iterate,
for (int i=0;i<10;i++){
for (Long j: hashTable[i])
System.out.println(j);
}