How do you move a file from one directory to another in Java?
You can open the file, read its contents, and write them to the new directory.
That's incorrect. You don't need to manually read and write the file for moving it.
What method would you use to move a file to a different directory in Java?