Java重命名文件时间:2024-11-24 21:07:43 File file = new File("D:\\aa\a.txt"); file.renameTo(new File("D:\\aa\\b.txt"));