Yes, you can simply use a text editor to rename a file. Or you could copy the file into a new location with a new name. But you also have the power to rename a file from within a Java program.
The File class has a renameTo() method.
Consider the following program: