import java.util.*; public class SetTestProgram1 { public static void main(String[] args) { Movie[] dvds = {new Movie("Bolt"), new Movie("Monsters Vs. Aliens"), new Movie("Marley & Me"), new Movie("Hotel For Dogs"), new Movie("The Day the Earth Stood Still")}; ArrayList inventory = new ArrayList(); // Add 10 random movies from the list of dvds for (int i=0; i<10; i++) { inventory.add(dvds[(int)(Math.random()*5)]); } for (Movie m: inventory) System.out.println(m); } }