Here you can find the source of mover(String file, String caminhoNovo)
public static void mover(String file, String caminhoNovo)
//package com.java2s; //License from project: Open Source License import java.io.File; import java.nio.file.Files; public class Main { public static void mover(String file, String caminhoNovo) { File arquivo = new File(file); File caminhoNovoFile = new File(caminhoNovo + arquivo); try {/* w w w . j a va 2s.c o m*/ Files.move(arquivo.toPath(), caminhoNovoFile.toPath()); } catch (Exception e) { // } } }