title: How to use ArrayList properly?
body: <p>Okay so using ArrayLists is a first for me, and I would consult my teacher or friends for help first...but its an online course so asking questions takes forever, and as of now I am the only student taking this course in my entire school (It's a pretty small school.) </p>
  
  <p>Anyways, this is so simple it's ridiculous (for you I would suppose) however it's getting rid of the underlined things...so I'm guessing I'm missing a key component...</p>
  
  <pre><code>public class EmployeeProjectView extends FrameView {
  </code></pre>
  
  <p>For example take this line...the beginning of this program, <code>company</code> is underlined red (I'm using netbeans) and I'm not sure why, it works fine as <code>String</code> so my question is....does it always have to be defined as a <code>String</code>?</p>
  
  <pre><code>/** Define the ArrayList */
  ArrayList&lt;company&gt; employee = new ArrayList&lt;company&gt;();
  
  
  public EmployeeProjectView(SingleFrameApplication app) {
  }// &lt;/editor-fold&gt;                        
  </code></pre>
  
  <p>This (below for "addButton") is where you store the information in the array. </p>
  
  <pre><code>private void addButtonActionPerformed(java.awt.event.ActionEvent evt) { 
  
  String c;
  String ID, firstName, lastName, salary, date;
  
  ID = IDField.getText();
  firstName = firstNameField.getText();
  salary = annualSalField.getText();
  date = startDateField.getText();
  </code></pre>
  
  <p>new <code>String</code>  is underlined red...</p>
  
  <pre><code> c = new String(ID, firstName, lastName, salary, date);
      employee.add(c);
  
  }                                         
  
  private void listButtonActionPerformed(java.awt.event.ActionEvent evt) {                                           
  
  //Code here gets listed in Field...
  
      }    
  </code></pre>