title: Java detect double double quotes in String
body: <p>Sample Code   </p>
  
  <pre><code>public static void main(String args[]){  
  String test=null;   
  if(some condition)  
     test = "\"abc\"";
  else
     test ="def";
  
  // if condition is true , in debug mode when i check the value of test its ""abc"" (double double quote);   
  // if condition is false , then value of test is "def" (double quotes only one time);
  
  
  }
  </code></pre>
  
  <p>Looking for a logic to check whether string has double double quotes . Tried below stuff   </p>
  
  <pre><code>// test.startsWith("\"\""))  // this didn;t work
  </code></pre>