title: Assign ArrayList<String> to File[] in java
body: <p>How to assign <code>ArrayList</code> of <code>String</code> to <code>File[]</code> in java. I have tried as shown below</p>
  
  <pre><code>ArrayList&lt;String&gt; fileList;
  
  File[] file;
  
  for (int i = 0; i &lt; fileList.size(); i++) {
      file = new File (fileList.get(i));
  }
  </code></pre>
  
  <p>But I am getting <code>file</code> cannot be converted to <code>File[]</code>. Please correct me.</p>