You can use an ArrayList of objects.



ArrayList<order> orderArrayList = new ArrayList<order>(); //Makes an arraylist to hold all of the order objects

for (int i=0; i < 10; i++)
...