Singly Linked List Composition

A Singly Linked List is made up of nodes. Each node contains data, and a link to another node in the list.



Every Singly Linked List has a head link that points to the first node in the list.

Since the last item in the list does not link to another item, its link is set to null, as seen here.



Here is an example of a Singly Linked List with 3 items. The first item in the list is paper, as indicated by the head link. Pen is the last item, therefore its link is set to null.