title: How to Create a customized Directory using java
body: <p>Problem:<br>
  I wanted to create a directory such that when I click on a button for one time the directory must be created with the name "Node_1". when I click on the same button once again the directory must be created with the name "Node_2".</p>
  
  <p>Please do not bother about the button. I need the code where the count must be incremented as stated above.</p>
  
  <p>The below sample code will create a directory with the name "Node_1" When I click once.</p>
  
  <p>But when I click button Once again, it will create a directory with the same name "Node_1" again. But I wanted to create with the name "Node_2".</p>
  
  <p><code>String src = "C:\\Users\\DELL\\Documents\\NetBeansProjects\\src\\Nodes\\Node_1\\n1_sample.txt";</code></p>