title: How to initialize a vector with an array in Java?
body: <p>Do I have to push my elements one by one? I tried something like</p>
  
  <pre><code>String[] array;
  array=...
  Vector&lt;String&gt; vector = new Vector&lt;String&gt;(array);
  </code></pre>
  
  <p>but my eclipse marks this as an error.</p>