I'm confused on how I would add the random numbers generated to the array list and then add them up at the end.
ArrayList<Coin> change = new ArrayList<Coin>();
// Generate a random number for how many coins 1-10
ArrayList<Integer> a = new ArrayList<Integer>();
int rand = (int) Math.round(Math.random() * 10 + 1);
a.add(rand);
for(int i=0;i< 0;i++)
System.out.println( (int)(Math.random()*10 + 1) + " Coins");
// Generate a random number 1,2,3,4 to represent which coin
System.out.println( (int)(Math.random()*4 + 1));
// Create a new Coin of that type and add it to the list
change.add(new Quarter());
System.out.println(change);
// Evaluate the full worth of the coins in the list