Possible Duplicate:
Renaming a file using Java
renameFile: This method should take as input a String from and a String to. It should return a boolean. The method should find the index in drive of a file with name from. If no such index exists, the method should return false. It should also check that the file to does not exist. If the file to does exist, then the method should return false. If the file from exists and to does not, then the method should change the name of the file from from to be to. In this case, the method should return true
can someone show me how to do this?