title: How do I add files to my folder? java
body: <p>My program is creating files and I'm needing to put them in a specific folder. Not sure of the process. Thanks</p>
  
  <pre><code>String path = "C:\\Users\\Blah\\Desktop\\blahblah\\FOLDER";
  File bfFolder = new File (path);
  bfFolder.mkdir();
  
  for (int a = 0; a &lt; 20; a++) {
      try (DataOutputStream dataO = new DataOutputStream(new FileOutputStream("file" + " a"))) {
  </code></pre>