SyntaxFix
Write A Post
Hire A Developer
Questions
Considere the case that Java is Multiplatform:
int lastPath = fileName.lastIndexOf(File.separator); if (lastPath!=-1){ fileName = fileName.substring(lastPath+1); }