Rename (or move) a directory in Java

This example shows how to rename a directory.
Note that the first parameter (fromDir) must exist, but the second must not.
However, should the second parameter be a subfolder to another directory,
the parent directory must exist.

Search for more Java info on this site here:
Custom Search

Please type any questions here.