 <p>Do you mean something like this?</p> <pre><code>List&lt;Cabbage&gt; = new ArrayList&lt;Cabbage&gt;(); // an arraylist that holds cabbages (good or otherwise) N_GOOD_CABBAGES = 10 //in a separate interface for(int j = 0; j &lt; N_GOOD_CABBAGES; j++){ Cabbage good = new GoodCabbage(); // make a good cabbage cabbages.add(good); // add it to the list } </code></pre>