title: How to move a folder(including subdirectories and files) into a new folder using Java code
body: <p>Can anyone help me for a Java code which copy or move one folder as it is into another folder.  </p>
  
  <p>For example:<br>
  I have a folder named <code>temp</code>, inside <code>temp</code> I have a folder <code>in-temp</code>. </p>
  
  <p>I want that my <code>temp</code> folder should be copied or moved into a new folder named <code>new temp</code>, but by using Java code. </p>
  
  <p>I got an example code by searching on Google which <em>copies</em> the sub-directories and files of a folder into a new folder, but as I said I need to <em>move</em> a folder with it's sub-folder into a new folder.</p>
  
  <p>Help me to resolve this.</p>
  
  <p>Thank you.</p>