I am trying to escape forward slash in String which can be used in path using Java. For example: String:: \"Test/World\" Now I want to use above string
String:: \"Test/World\"
In order to escape a character in Java use "\" for example:
String strPath = "directory\\file.txt".
I believe you do not need to escape forward slashes such as: "/"