Hello,
I have a string containing a fileName and I have to cut the .extension if it there is. otherwise do nothing; furthermore I have to change the first letter to uppercase:
Is this ok?
filename "file.xml" -> File
filename "file" -> File
filename "file.xml" -> File
filename "file" -> File
To copy to clipboard, switch view to plain text mode
I do it but it's not comple......... and it works only string with .extension
String s = fileName.substring(0, fileName.indexOf(".")
String s = fileName.substring(0, fileName.indexOf(".")
To copy to clipboard, switch view to plain text mode
Any hints, please?
Bookmarks