Mark McClellan
well, it depends.
class Node { public Node next; public Node previous; public int item; public Node(int item) { this.item = item; } public Node(int item, Node previous) { this.item = item; this.previous = previous; } } public class DoublyLinkList { public static void main(String[] args) { // TODO Auto-generated method stub DoublyLinkList doublyLinkList = new DoublyLinkList(); Node head = doublyLinkList.addNodeFIFO(null, 1); head = doublyLinkList.addNodeFIFO(head, 2); head = doublyLinkList.addNodeFIFO(head, 3); head = doublyLinkList.addNodeFIFO(head, 4); head = doublyLinkList.addNodeFIFO(head, 5); doublyLinkList.printdoublyLinkList(head); Node current = head; current = doublyLinkList.movePrevious(current); current = doublyLinkList.moveNext(current); current = doublyLinkList.movePrevious(current); current = doublyLinkList.moveNext(current); current = doublyLinkList.moveNext(current); current = doublyLinkList.moveNext(current); current = doublyLinkList.moveNext(current); current = doublyLinkList.moveNext(current); current = doublyLinkList.moveNext(current); current = doublyLinkList.moveFirst(current); current = doublyLinkList.moveLast(current); // head = doublyLinkList.deleteNodeFIFO(head, 3); // // doublyLinkList.printdoublyLinkList(head); // // head = doublyLinkList.deleteNodeFIFO(head, 1); // // doublyLinkList.printdoublyLinkList(head); // // head = doublyLinkList.deleteNodeFIFO(head, 5); // // doublyLinkList.printdoublyLinkList(head); } public Node addNodeFIFO(Node head, int item) { System.out.println("In Add Node"); if(head item) { cNode.next = nNode.next; break; } else { cNode = nNode; nNode = nNode.next; } } return head; } public void printdoublyLinkList(Node head) { while(head != null) { System.out.println(head.item); head = head.next; } } }
I believe the current head of service is Mr. Steve Orasonye
no there is no head of nation
Jim Harbaugh is the current head coach, for the 2011 season.
The current head of the Eastern Orthodox Church is Ecumenical Patriarch Bartholomew I.
The current head of the Greek Orthodox Church is Archbishop Ieronymos II.
I believe the current head of service is Mr. Steve Orasonye
The current associate head coach of the basketball team is John Smith.
The current director of PAGASA is Prisco Nilo.
the president is the head of the united states
The current spiritual head is Patriarch Maxim.