• Post Reply Bookmark Topic Watch Topic
  • New Topic

Linked List / Node  RSS feed

 
Tarrell Fletcher
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am guessing the Nodes in java is another way of saying Linked List right? Well I have a variety of steps to follow in making a linked list. I already did the first step and stored the values in the node.


How am I suppose to switch the values 6 and 2?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66304
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tarrell Fletcher wrote:I am guessing the Nodes in java is another way of saying Linked List right?

No. The term "node" could be applied to an element of a linked list -- but it could mean many other things as well.

How am I suppose to switch the values 6 and 2?

Did you not find anything useful when you looked at the javadoc for java.util.LinkedList?
 
Tarrell Fletcher
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never checked that out but I will now.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!