예제 #1
0
 public Puzzle() {
   matches = new ArrayList<Match>();
   for (Family family : Family.values()) {
     for (Gift gift : Gift.values()) {
       for (Color color : Color.values()) {
         matches.add(new Match(family, gift, color));
       }
     }
   }
 }