LinkedList : Java Glossary


LinkedList is Canadian Mind Products’ replacement for Java Vector class. It is implemented as a classical doubly linked list. It is faster than Vector for insert/delete, but slower for indexed access. The interface is modeled on java.util.Vector, so you can try it both ways and pick which is faster for your needs. Heavily commented Java source is included. Download. Beware  java.awt.Listawt.List, java.util. List and java.util.LinkedList are not the same animal.

You can use LinkedList to create a LIFO (Last In First Out) stack — use only addFirst, removeFirst or a FIFO (First In First Out) queue — use only addFirst, removeLast.

Learning More

Oracle’s Javadoc on linkedList class : available:

This page is posted
on the web at:

Optional Replicator mirror
on local hard disk J:

Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.
no blog for this page
Your face IP:[]
You are visitor number