title: performance issue in arraylist.add(objects)
body: <p>Could you please provide me the kind of performance issue arises in the following statement. How to resolve it.</p>
  
  <pre><code>ArrayList a = new ArrayList();
  a.add("myname");
  a.add(new myClass()); //here I am trying to assign the object to the list. 
  a.add(new Integer(50));
  </code></pre>