40 lines
669 B
Java
40 lines
669 B
Java
package com.xgiovio;
|
|
|
|
import arraylist.ArrayIndexList;
|
|
import general_utility.test_object;
|
|
import sequence.NodeSequence;
|
|
import sequence.Sequence;
|
|
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);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|