title: How can I create a new table in my SQLite Database using a param from a Java String variable?
body: <p>I am trying to create a new table in SQLite using a preexisting Java String variable but the variable name is not being recognized as Java... How can I fix this? </p>
  
  <pre><code>    String name1 = textViewPerson1.getText().toString();
      String name2 = textViewPerson2.getText().toString();
      String name3 = textViewPerson3.getText().toString();
  
      try{
          SQLiteDatabase database = this.openOrCreateDatabase("NewUsers",MODE_PRIVATE,null);
          database.execSQL("CREATE TABLE IF NOT EXISTS newUsers (name VARCHAR, hitCount INT(2))");
          database.execSQL("INSERT INTO newusers (name,age) VALUES (name1,17)");
          database.execSQL("INSERT INTO newusers (name,age) VALUES (name2, 16)");
      }catch (Exception e){
          e.printStackTrace();
      }
  
  }
  </code></pre>