I want to remove last occurrence of "\" this special character from my string. I tried it with string functions like
String word = str.substring(str.lastIndexOf("\"));
But every time I am getting an error which is asking to put an extra quote. Meanwhile I found out ("\"") is used to pass " this special character. How do I proceed?