File sourceFile = new File(pathname + File.separator + oldName);
File targetFile = new File(pathname + File.separator + newName);
Path source = sourceFile.toPath();
Path target = targetFile.toPath();
try {
Files.move(source, target);
} catch (IOException e) {
e.printStackTrace();
}
10-28
218
04-15
4214
06-21