title: instanceof in java on a nested array list
body: <p>How come i get an error at the if statement, what can i do to find the datatype the nested array list can hold?</p>
  
  <pre><code>ArrayList&lt;List&lt;? extends Object&gt;&gt; table;
  table = new ArrayList&lt;List&lt;? extends Object&gt;&gt;();
  table.add(new ArrayList&lt;String&gt;());
  if( table.get(0) instanceof List&lt;String&gt; ){
  //Do something
  }
  </code></pre>