title: Multiple values in one ArrayList key
body: <p>I'm trying to put multiple values in one arraylist key, but instead I get an error:</p>
  
  <p>Class:</p>
  
  <pre><code>public class BestellenWindow extends javax.swing.JFrame {
      private ArrayList&lt;String&gt; bestelling = new ArrayList&lt;String&gt;(); 
  
      public BestellenWindow() {
          initComponents();
      }
  </code></pre>
  
  <p>Action performed:</p>
  
  <pre><code>private void BestellenbuttonActionPerformed(java.awt.event.ActionEvent evt) 
  {
      bestelling.add(Barcodetext.getText(), Aantaltext.getText());
      System.out.println(bestelling.get(0));       
  }
  </code></pre>
  
  <p>error:</p>
  
  <blockquote>
    <p>no suitable method found for add(java.lang.String,java.lang.String)
        method java.util.ArrayList.add(int,java.lang.String) is not applicable
          (actual argument java.lang.String cannot be converted to int by method invocation conversion)
        method java.util.ArrayList.add(java.lang.String) is not applicable</p>
  </blockquote>