implementato nodeposition con to string e reverse. aggiunto copyright
This commit is contained in:
35
com/xgiovio/NodePositionListTest.java
Normal file
35
com/xgiovio/NodePositionListTest.java
Normal file
@@ -0,0 +1,35 @@
|
||||
package com.xgiovio;
|
||||
|
||||
import arraylist.ArrayIndexList;
|
||||
import general_utility.test_object;
|
||||
import position.NodePositionList;
|
||||
|
||||
/**
|
||||
* Created with xgiovio.macbookair.
|
||||
* User: xgiovio
|
||||
* Date: 23/03/14
|
||||
* Time: 20:37
|
||||
*/
|
||||
public class NodePositionListTest {
|
||||
|
||||
public static void main(String[] args) {
|
||||
NodePositionList<test_object> a = new NodePositionList<test_object>();
|
||||
|
||||
a.addLast(new test_object(1));
|
||||
a.addLast(new test_object(2));
|
||||
a.addLast(new test_object(3));
|
||||
a.addLast(new test_object(4));
|
||||
|
||||
|
||||
System.out.print(a);
|
||||
a.reverse();
|
||||
System.out.print(a);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user