how to copy file fron one location to another location using java in dynamically : we are trying to copy one file to another location. But we succeed all files move to one location to another but i want to copy only particular file into one location to anothier location.

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-html -->

    import java.io.File;

    public class fileTranfer {

    	public static void main(String[] args) {
    		   File sourceFolder = new File("C:/offcial/BPM/Veriflow");
    		   File destinationFolder = new File("C:/offcial/BPM/Veriflow2");
    		   
    		   if (!destinationFolder.exists())
    		   {
    		       destinationFolder.mkdirs();
    		   }

    		   // Check weather source exists and it is folder.
    		   if (sourceFolder.exists() && sourceFolder.isDirectory())
    		   {
    		       // Get list of the files and iterate over them
    		       File[] listOfFiles = sourceFolder.listFiles();

    		       if (listOfFiles != null)
    		       {
    		           for (File child : listOfFiles )
    		           {
    		               // Move files to destination folder
    		               child.renameTo(new File(destinationFolder + "\\" + child.getName()));
    		           }

    		       }
    		       System.out.println(destinationFolder + "  files transfered.");
    		   }
    		   else
    		   {
    		       System.out.println(sourceFolder + "  Folder does not exists");
    		   }

    	}

    }


<!-- end snippet -->

 