How to change the file name present in the workspace using Java?

How to change the file name present in the workspace using Java?

Hi Richard!

You will need to provide location of the file and where the update file needs to be placed.

File file = new File("File_Location");

File rename = new File("Updated_File_Location");

boolean flag = file.renameTo(rename);