title: How to get contents of a folder and put into an ArrayList
body: <p>I want to use</p>
  
  <pre><code>File f = new File("C:\\");
  </code></pre>
  
  <p>to make an ArrayList with the contents of the folder.</p>
  
  <p>I am not very good with buffered readers, so please tell me if that is better.</p>
  
  <p>Here's the code I have so far:</p>
  
  <pre><code>import java.io.BufferedReader;
  import java.io.File;
  import java.io.FileReader;
  import java.io.IOException;
  
  
  public class buffered_read {
  public static void main(String[] args) {
      File f = new File("C:\\");
      int x = 0;
      boolean b = true;
      File list[];
      while(b = true){
  
      }
  }
  }
  </code></pre>
  
  <p>Thanks,
  obiedog</p>