将文件或目录移动到另一个目录
import java.io.File;/*来 自 时 代 Java - nowjava.com*/ public class Main { public static void main(String[] argv) throws Exception { // File (or directory) to be moved File file = new File("filename"); // Destination directory File dir = new File("directoryname"); // Move file to new directory boolean success = file.renameTo(new