9596979899100101102103104105
/** Insert an object at the head of the list. * @param o the object to add */ protected void insertHead(Object o) { LLCell c = head; head = new LLCell(o); head.next = c; length++; if (tail == null) tail = head; }