code: public boolean createFile() {
          try {
              try (FileWriter newDic = new FileWriter(path + "/" + name + "." + FILE_EXTENSION); BufferedWriter bufWriter = new BufferedWriter(newDic)) {
                  bufWriter.write(HEAD);
                  if (sentences.size() > 0) {
                      bufWriter.write("public <sentence> = (" + sentences.get(0));
  
                      for (int i = 1; i < sentences.size(); i++) {
                          bufWriter.write(" | " + sentences.get(i));
                      }
                      bufWriter.write(" );\n");
                  }
                  bufWriter.flush();
              }
              return true;
          } catch (IOException ex) {
              Logger.getLogger(GrammarFacilitator.class.getName()).log(Level.SEVERE, null, ex);
          }
          return false;
      }
docs: Create a file with the JSGF Grammar
  
  @return