ArrayIndexList completed
This commit is contained in:
34
com/xgiovio/ArrayIndexListTest.java
Normal file
34
com/xgiovio/ArrayIndexListTest.java
Normal 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);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user