How to escape forward slash in java so that to use it in path
问题 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 path.At the same time I have to make sure that "Test/World" will come as it is in path. Sorry if its duplicate but I couldn't find any satisfactory solution for this. My purpose is to use above string to create nodes in Zookeeper. Example: If I use following string to create node in Zokkeeper then I should get "Test/World" as a single node not