title: Java - Create Multiple Subfolders at Once
body: <p>I'm trying to create a function that creates multiple folder/subfolders in a single instruction using Java.
  I can use <code>File</code>'s <code>mkdirs()</code> method to create a single folder and its parents.</p>
  
  <p>An example of the struture I want:</p>
  
  <pre><code>folder
  └── subfolder
      ├── subsubfolder1
      ├── subsubfolder2
      └── subsubfolder3
  </code></pre>
  
  <p>For example in linux I can achieve this with the following command:</p>
  
  <pre><code>mkdir -p folder/subfolder/{subsubfolder1,subsubfolder2,subsubfolder3}
  </code></pre>
  
  <p>Is there a way I can achieve this in Java?</p>