You are on page 1of 4

Doubly Linked Lists

Node data

• info: the user's data


• next, prev: the address of the next and previous node in the
list

prev info next


Node structure

Public class Node {


Object info; //any data type
Node next;
Node prev;
};

head / Ahmed Ali Hassan Youssef /


Inserting into a Doubly Linked List

current

head / Ahmed Ali Hassan Youssef /

Mohammed

newNode

You might also like