我正在使用JDK6。我有2个文件夹名称是Folder1和Folder2。Folder1有以下文件TherMap.txtTherMap1.txtTherMap2.txt每次Folder2只有一个名为TherMap.txt的文件。我想要的,从folder1复制任何文件并粘贴到Folder2中,名称为TherMap.txt。如果已经有TherMap.txt存在于Folder2中,然后删除并粘贴它。因为我写了下面的代码。但是它不起作用publicvoidFileMoving(StringsourceFilePath,StringdestinationPath,StringfileName)th