public class MoveFileUtil {
//将file文件移动到目标文件下
public static void movefile(String filename,String newfilename){
File oldname = new File(filename);
File newname = new File(newfilename);
System.out.println(oldname);
System.out.println(newname);
oldname.renameTo(newname);
}
}