title: Query problem - insert in JDBC (double quotes, single quote)
body: <p>I've a stupid problem that I cannot resolve. I'm learning Java and I'm new with this. My case is:</p>
  <p>// ad a person into db</p>
  <pre><code>public static void aggiungiPersona(int id, String nome, String cognome, int anni, String sesso, 
                                    String indirizzo, String numTel, String email) {
  
      try {
               // create query
          String query = String.join(&quot;&quot;, &quot;insert into persone (id, nome, cognome, anni, sesso, indirizzo, numTel, email) VALUES (&quot;,
                  
                  Integer.toString(id), &quot;, '&quot;,
                  nome, &quot;', '&quot;, 
                  cognome, &quot;', &quot;, 
                  Integer.toString(anni), &quot;, '&quot;,
                  sesso, &quot;', '&quot;, 
                  indirizzo, &quot;', '&quot;,
                  numTel, &quot;', '&quot;,
                  email, &quot;', &quot;,
                   &quot;)&quot;
  
                  );    
  </code></pre>
  <p>I know that the problem is in quotes or double quotes, but where?</p>