0

Java – Rename a file

renameTo

To rename a file , use the renameTo method in java.io.File.