title: Escape double quotes in Java
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3034186/in-java-is-there-a-way-to-write-a-string-literal-without-having-to-escape-quotes">In Java, is there a way to write a string literal without having to escape quotes?</a>  </p>
  </blockquote>
  
  
  
  <pre><code>private static final String CREATE_TABLE_EXHIBITORS = "CREATE TABLE "users" ("_id" text PRIMARY KEY ,"name" text,"body" text,"image" text,"stand_id" text,"begin" long,"end" long,"changedate" long,"website" text,"facebook" text,"myspace" text,"twitter" text,"festivallink" text,"favorite" integer);";
  </code></pre>
  
  <p>Let's say I want this query to be a valid string in Java. Do I have to convert it to escape all double quotes with a trailing slash in front?</p>
  
  <pre><code>e.g.  = "CREATE TABLE \"users"\
  </code></pre>
  
  <p>Or is there a faster way to make this whole query a valid string at once? I thought you could use single quotes around the whole string to do that but that doesn't work either.</p>