title: (Java) Iterating over a Vector<String[]>, why is .next() an Object, not a String[]?
body: <p>In Java, when you iterator over a <code>Vector&lt;String[]&gt;</code>, why is <code>.next()</code> an <code>Object</code> that needs to be casted to <code>String[]</code>, to use each element as a <code>String[]</code>?</p>
  
  <p>EDIT:</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    Iterator itr = getIdAndName().iterator();
      while( itr.hasNext() ) {
          String[] stringArray = (String[])itr.next();
          String id = stringArray[0];
          String name = stringArray[1];
          System.out.println(id + ": " + name);
      }
  </code></pre>
  
  <p><code>getIdAndName()</code> returns <code>Vector&lt;String[]&gt;</code>.</p>