Singly-Linked List implementation in Java. Refs to first and last elements.