I would really appreciate if you can help to answer to this question:
I have already created a custom linked list myself in a very standard way using Java. Below are
Your linkedList class already creates the Nodes for you!
linkedList
Node
linkedList list = new linkedList(); list.add("foo"); list.add("bar"); Node tmp = lst.getHead(); while(tmp != null){ System.out.println(tmp.getData()); tmp = tmp.getNext(); }
Will print
foo bar