title: get arraylist values passed to asynctask at doinbackground
body: <p>I have an Asynctask setup I pass an Arraystring like this</p>
  <pre><code>ArrayList&lt;String&gt; creds = new ArrayList&lt;String&gt;();
  creds.add(string1);
  creds.add(string2);
  new myasynctask().execute(creds);
  </code></pre>
  <p><strong>asynctask method</strong>
  class myasynctask extends AsyncTask&lt;ArrayList, Integer , String&gt;</p>
  <p><strong>DOinbackground</strong></p>
  <pre><code>protected String doInBackground(ArrayList&lt;String&gt;... creds) 
  
              {       String lol1= creds[0].toString();
                      String lol2= creds[1].toString();
  ........rest of the code
                                  
  }
  </code></pre>
  <p>I get an Array index out of bond exception
  how do I pass tow values into the doinbackground method and get both of them at once.</p>