How to rename a file in java

You can easily rename a file in Java using the┬árenameTo() ┬ámethod. But there is a catch. This methods works in a platform specific manner. The file may get renamed if tried on a linux machine and may fail on windows. Hence it is very important… Read More