title: How to copy-paste, and cut-paste file or folder in java?
body: <p>I made a desktop app in java with netbeans platform. In my app I want to give separate copy-paste and cut-paste option of file or folder. </p>
  
  <p>So how can I do that? I tried <code>Files.copy(new File("D:\\Pndat").toPath(),new File("D:\\212").toPath(), REPLACE_EXISTING);</code>. But I don't get the exact output. </p>
  
  <p>If there any other option then suggest me.</p>