This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes doubly linked list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "doubly linked list" Watch "doubly linked list" New topic
Author

doubly linked list

faisal hameed
Ranch Hand

Joined: Jan 19, 2009
Posts: 48
do we have senitel node always in doubly linked list in Java??


Regards, M Faisal Hameed
PUCIT, Pakistan
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18876
    
  40

senitel node??


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Istvan Kovacs
Ranch Hand

Joined: May 06, 2010
Posts: 100
Henry Wong wrote:senitel node??

http://en.wikipedia.org/wiki/Linked_list#Sentinel_nodes
Istvan Kovacs
Ranch Hand

Joined: May 06, 2010
Posts: 100
faisal hameed wrote:do we have senitel node always in doubly linked list in Java??


Note that you can't access the internal representation (nodes) of the built-in type java.util.LinkedList; it just implements the java.util.List interface, and provides position-based access.

For your own implementation, it's up to you.
 
GeeCON Prague 2014
 
subject: doubly linked list