package LinkedListObject;
public class ListNode {
Object element;
ListNode next;
ListNode prev;
public ListNode() {
}
public ListNode(Object element) {
this.element = element;
}
public Object getElement() {
return element;
}
public void setElement(Object element) {
this.element = element;
}
public ListNode getNext() {
return next;
}
public void setNext(ListNode next) {
this.next = next;
}
public ListNode getPrev() {
return prev;
}
public void setPrev(ListNode prev) {
this.prev = prev;
}
}
Tidak ada komentar:
Posting Komentar