title: Creating instance list of different objects
body: <p>I'm tring to create an arraylist of different class instances. How can I create a list without defining a class type? <code>(&lt;Employee&gt;)</code></p>
  
  <pre><code>List&lt;Employee&gt; employees = new ArrayList&lt;Employee&gt;();
  employees.add(new Employee());
  Employee employee = employees.get(0);
  </code></pre>