//Create a linked list LinkedListThis example creates a linked list with nodes "Node 1", "Node 2", "Node 3" and iterates through the linked list using the Node next method to print the data in each node. The Node next method is part of the Java Collections Framework, which is a library of classes and interfaces for working with collections of objects. Specifically, it is part of the LinkedList class, which is a doubly-linked list implementation of the List interface.linkList = new LinkedList (); linkList.add("Node 1"); linkList.add("Node 2"); linkList.add("Node 3"); //Iterate through the linked list using Node next Node currentNode = linkList.getFirst(); while(currentNode != null) { System.out.println(currentNode.data); currentNode = currentNode.next; }