title: How to escape forward slash in java so that to use it in path
body: <p>I am trying to escape forward slash in String which can be used in path using Java.<br>
  For example: <code>String:: "Test/World"</code><br>
  Now I want to use above string path.At the same time I have to make sure that <code>"Test/World"</code> 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.<br>
  <em>Example:</em><br>
  If I use following string to create node in Zokkeeper then I should get "Test/World" as a single node not separate. Zookeeper accepts "/" as path separator which in some cases I dont require.
  <code>/zookeeper/HellowWorld/Test/World</code></p>
  
  <p>Thanks</p>