public static void main(String args[]){
		
		int[] dataA={1,3,4,5,6,4,8,4};
		DoublyLinkedList tester=new DoublyLinkedList(dataA);
		
		System.out.println(tester.display());
		
		tester.insertFirst(55);
		tester.insertLast(87);
		tester.insertAfter(567, 3);
		System.out.println(tester.display());
		
		tester.delete(55);
		tester.delete(87);
		tester.delete(3);
		System.out.println(tester.display());
		
		Iterator iter=tester.getIterator();
		
		StringBuilder sbu=new StringBuilder();
		
		while(true){
			sbu.append(iter.getCurrent().data);
			sbu.append("==>");
			
			if(iter.atEnd())
				break;
			iter.nextLink();
		}
		System.out.println(sbu.toString());
		
		iter.reset();

		iter.insertBefore(iter.getCurrent().data-1);
		iter.insertAfter(iter.getCurrent().data+1);
		iter.deleteCurrent();
		
		System.out.println(tester.display());
		
	}