public class TestOrderOfMoves { public static void main(String[] args){ Move move1=new Move(1,11,21); Move move2=new Move(2,12,22); Move move3=new Move(3,13,23); OrderOfMoves order=new OrderOfMoves(); order.add(move1); order.add(move2); order.add(move3); for(int i=0;i<order.size();i++){ Move movei=order.getMove(i); System.out.println("move" + i + "=" + movei.getStoneColor() + "," + movei.getRow() + "," + movei.getCol()); } } }