title: How can use two array lists in one for loop?
body: <p>I have to enter some data to database, see my code. I am facing problem on two times execute Insert Query.
  So I want one for loop that contain both Strings and ArrayList.</p>
  
  <pre><code>public static ArrayList&lt;String&gt; ApplicationPackageList  = new ArrayList&lt;String&gt;();
  public static ArrayList&lt;String&gt; ApplicationList        = new ArrayList&lt;String&gt;();
  .
  .
  .
  for (String r : ApplicationPackageList ) {
  
                  DB.insertStmt.bindString(1, URLDecoder.decode(r));
                  DB.insertStmt.executeInsert();
              }
  
  for (String s : ApplicationList) {
  
                  // DB.insertStmt.bindString(1, URLDecoder.decode(r));
                  DB.insertStmt.bindString(2, URLDecoder.decode(s));
                  DB.insertStmt.executeInsert();
  
              }
  </code></pre>