title: how to split the string in java
body: <p>how to split the string in java in Windows?
   I used 
       Eg. </p>
  
  <pre><code>String directory="C:\home\public\folder";
  String [] dir=direct.split("\");
  </code></pre>
  
  <p>I want to know how to split the string in eg. 
  In java, if I use <code>"split("\")"</code> , there is syntax error.</p>
  
  <p>thanks</p>