title: create a large arraylist
body: <p>could someone please explain to me how to create a large arraylist of objects currently, this is what i have.</p>
  
  <p>public ArrayList particlecollection;</p>
  
  <pre><code>public ParticleColl(Particle thorium)
  {
      particlecollection = new ArrayList&lt;Particle&gt;();
  
      for(int i=1;i&lt;=100;i++)
      {
          particlecollection.add("Thorium",24.07);
      }
      System.out.println(particlecollection.get(3));
  }
  </code></pre>
  
  <p>The particlecollection.add("Thorium",24.07) is referring to a Particle class, which has 2 paramaters </p>
  
  <p>Particle(String name, double halflife)</p>
  
  <p>The error that I am being given is "cannot find symbol- method add(java.lang.string,double);  maybe you meant add(Particle) or add(int,Particle).</p>
  
  <p>Thank you so much for your help in advance.</p>