package linkedLists; public class TestDIntList { /** class to test the doubly linked list of integers methods */ public static void main(String[] args) { DIntList myIntList = new DIntList(); myIntList.addValue(3); myIntList.addValue(2); myIntList.addValue(0); myIntList.addValue(-1); myIntList.addValue(-3); System.out.println("The list is: " + myIntList); System.out.println("The positive values are: "); myIntList.writePos(); myIntList.delete0(); System.out.println("after removing 1st 0 list is: " + myIntList); myIntList.delete0(); System.out.println("after removing 2nd 0 list is: " + myIntList); myIntList.delete(2); System.out.println("after removing value 2 list is: " + myIntList); } }