title: Java trimming down code
body: <p>I have a list of checkboxes that I would like to disable. Rather than typing</p>
  
  <pre><code>c1.setEnabled(false);
  c2.setEnabled(false);
  c3.setEnabled(false);
  c4.setEnabled(false);
  c5.setEnabled(false);
  </code></pre>
  
  <p>How could I trim this code down by putting them in some sort of group? I have the same issue throughout a lot of my code but with different components. Thanks</p>