title: Loading an ArrayList into a JCombobox using netbeans
body: <p>Currently have an ArrayList called <em>SundayList</em> which is loaded as soon as the frame <em>AddStudent</em> is loaded (bit of GUI)</p>
  
  <p>The code automatically generated by Netbeans is:</p>
  
  <pre><code>comboboxSunday = new javax.swing.JComboBox();
  
  comboboxSunday.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item1", "Item2" }));
  </code></pre>
  
  <p>How do I load the combobox items with  my own array?
  The array includes items such as:</p>
  
  <pre><code>Activity1
  Activity2
  Activity3
  Activity4
  </code></pre>
  
  <p>From my previous search, people mentioned about using a <code>toString()</code> and <code>toArray()</code>, and I'm not familiar with either methods, and how they help in loading the list into the combobox as I'm quite new to java..</p>