Hi,
What is the code for renaming a file?
How to rename a file in Java?
Thanks
You can use the renameTo() method for renaming a file or directory.
Check tutorial at Rename the File or Directory in Java.
Post Answer
Preview:
Ads