SyntaxFix
Write A Post
Hire A Developer
Questions
Try this :-
boolean success = file.renameTo(new File(Destdir, file.getName()));