@@ -0,0 +1,450 @@
+package data_structures.linked_lists;%0D%0A%0D%0A/*%0D%0A  Print elements of a linked list on console %0D%0A  head pointer input could be NULL as well for empty list%0D%0A  Node is defined as %0D%0A  class Node %7B%0D%0A     int data;%0D%0A     Node next;%0D%0A  %7D%0D%0A*/%0D%0A%0D%0A// This is a %22method-only%22 submission. %0D%0A// You only need to complete this method. %0D%0A    %0D%0Avoid Print(Node head) %7B%0D%0A  while(head != null) %7B%0D%0A      System.out.println(head.data);%0D%0A      head = head.next;%0D%0A  %7D%0D%0A  %0D%0A%7D%0D%0A

Print the elements of a linked list