I need help on getting the index of the backslash.
String sms = "dev\project\lastdev\jfile.dll"
How do I do something like..
int l = sms.lastIndexOf("\")
Giving me -1. Which wrong
I need help on getting the index of the backslash.
String sms = "dev\project\lastdev\jfile.dll"
How do I do something like..
int l = sms.lastIndexOf("\")
Giving me -1. Which wrong
You need to escape the backslash like this:
int index = str.lastIndexOf("\\");
Check this for more info on characters of this kind.