I want to renamed file 140103122005+0530_Penguins.jpg
to Penguins.jpg
from same directory.
I have tried renameTo()
but it is not working, it requires destination file, I don't have destination file.
Anyone can tell me how to I rename the same file from same directory using Java.