title: String builder append method in java queryStr.append(\\%AMPAMP\\$);
body: <pre><code>queryStr.append("\\\\%AMPAMP\\\\$"); 
  </code></pre>
  
  <p>after executing this line the querStr removes </p>
  
  <p>one \ from the string and the final result will be: </p>
  
  <pre><code>"\%AMPAMP\$"
  </code></pre>
  
  <p>I want it to be:</p>
  
  <pre><code>\\\\%AMPAMP\\\\$
  </code></pre>