title: android for loop with string [] array
body: <p>I can make individual <code>strings</code> from a <code>string [] array</code> like this for example :</p>
  
  <pre><code>//first, make stringArray1 the same size as arrayList1
  stringArray1 = new String[arrayList1.size()];
  
  //stringArray1 will contain all the values in arrayList1
  stringArray1 = arraylist1.toArray(stringArray1);
  
  //for each value in stringArray1 make it into an individual string,
  //called string1
              for(String string1: stringArray1 )
  
              {
                  System.out.println("string1 is " + string1);
  
               }
  </code></pre>
  
  <p>Can you tell me how I would put another string conversion from <code>string [] array</code> into the same <code>for</code> loop? Both <code>arrayList1</code> and <code>arrayList2</code> are exact same size. I thought I would be able to use <code>&amp;&amp;</code> but no joy. I'm getting <code>'Expression expected'</code>. Or do I need to have two different <code>for</code> loops?
  This is what I have:</p>
  
  <pre><code>//first, make stringArray1 the same size as arrayList1
  stringArray1 = new String[arrayList1.size()];
  
  //second, make stringArray2 the same size as arrayList2
  stringArray2 = new String[arrayList2.size()];
  
  //stringArray1 will contain all the values in arrayList1
  stringArray1 = arraylist1.toArray(stringArray1);
  
  //stringArray2 will contain all the values in arrayList2
  stringArray2 = arraylist2.toArray(stringArray2);
  
  //for each value in stringArray1 make it into an individual string,
  //called string1. Do likewise for string2
              for(String string1: stringArray1 &amp;&amp; String string2: stringArray2)
  
              {
                  System.out.println("string1 is " + string1);
                  System.out.println("string2 is " + string2);
  
               }
  </code></pre>