how to declare a linked list in java

Java
 LinkedList<String> list=new LinkedList<String>();
Source

Also in Java: