how to create array of linkedlist in java

Java
LinkedList<Long> hashTable[] = new LinkedList[10];
Source

Also in Java: