ArrayIndexList completed

This commit is contained in:
2014-03-25 01:05:59 +01:00
parent afaa638caa
commit 6a80293d09
2 changed files with 110 additions and 46 deletions

View File

@@ -0,0 +1,34 @@
package com.xgiovio;
import arraylist.ArrayIndexList;
import general_utility.test_object;
import stack.NodeStack;
/**
* Created with xgiovio.macbookair.
* User: xgiovio
* Date: 23/03/14
* Time: 20:37
*/
public class ArrayIndexListTest {
public static void main(String[] args) {
ArrayIndexList<test_object> a = new ArrayIndexList<test_object>(2);
a.add(0,new test_object(1));
a.add(1,new test_object(2));
a.add(2,new test_object(3));
a.add(3,new test_object(4));
System.out.print(a);
a.remove(2);
System.out.print(a);
}
}