title: How to split a java string at backslash
body: <pre><code>String fname="C:\textfiles\db\query\query.txt";
  </code></pre>
  
  <p>this is the string i need to split it. </p>
  
  <p>I tried with this</p>
  
  <pre><code>String [] items=fname.split("\");  
  </code></pre>
  
  <p>But not working. </p>
  
  <pre><code>String [] items=fname.split("\\"); also not working...
  </code></pre>
  
  <p>how to split this string...  </p>