public void copyFiles(){
File source = new File("/home/anil/FileLocation/Source/test1.text");
File destination = new File("/home/anil/FileLocation/Destination/"+ source.getName());
try {
Files.copy(source.toPath(), destination.toPath(), StandardCopyOption.REPLACE_EXISTING);
} catch (IOException e) {
System.out.println(e);
}
}