Java file rename failure

I remember that I encountered this problem before, and then I found it after several hours. This time, I spent another hour to find out the problem. I found that my file stream was not closed. I must remember that when renaming a file, I must first close the file stream and then rename it. Remember! Remember! Remember!

Read More: