title: Adding file names to an array list in java
body: <p>I am currently needing to load the contents of a folders filenames to an arraylist I have but I am unsure as how to do this.</p>
  
  <p>To put it into perspective I have a folder with One.txt, Two.txt, Three.txt etc. I want to be able to load this list into an arraylist so that if I was to check the arraylist its contents would be :</p>
  
  <p>arraylist[0] = One </p>
  
  <p>arraylist[1] = Two</p>
  
  <p>arraylist[3] = Three</p>
  
  <p>If anyone could give me any insight into this it would be much appreciated. </p>