linked list - Is there a Java's public LinkedListNode<E> class to store a temporary node -


i have java's linkedlist<integer> object. want temporarily store node object in linkedlistnode<integer> tempnode, cannot seem find linkedlistnode class in java docs.

is there way store node, java library class or other technique? , without writing our own implementation.

code:

public void method(linkedlist<integer> list){     linkedlistnode<integer> tempnode = list.getfirst();  //<------- tempnode     for( k times){ tempnode = tempnode.next();} } 


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -