title: how can I create a file in the current user's home directory using Java?
body: <p>Hello I was just wondering how to make a custom directory below the current user's home directory. I've tried this already and it doesn't work... (Code below)</p>
  
  <p>I want it to go to this directory and create the folder in the documents folder</p>
  
  <p>c:/users/"user"/documents/SimpleHTML/</p>
  
  <pre><code>File SimpleHTML = new File("C:/Users/"user"/Documents"); {
  
  //  if the directory does not exist, create it
  if (!SimpleHTML.exists()) {
      System.out.println("createing direcotry: " + SimpleHTML);
      boolean result = SimpleHTML.mkdir();
  
          if(result) {
              System.out.println("Direcotry created!");
          }
  }
  
  new simplehtmlEditor() {
      //Calling to Open the Editor
  };
  
  }
  </code></pre>