title: Arraylist does not take parameters JAVA
body: <p>The documentation says arraylist does not take parameters and I am not sure what todo to correct it.</p>
  
  <pre><code>package arraylist;
  
  public class ArrayList {
  
    public static void main(String[] args) {
      ArrayList&lt;Integer&gt; weeklyTemperatures = new ArrayList&lt;Integer&gt;();
      weeklyTemperatures.add(78);
      weeklyTemperatures.add(67);
      weeklyTemperatures.add(89);
      weeklyTemperatures.add(94);
      weeklyTemperatures.add(2, 111);
      System.out.println(weeklyTemperatures.get(3));
    }
  }
  </code></pre>