How to convert from Array<String> to String[] in Java
<p>I have to get a part of my content provider query in a String[] format.  Currently I use:</p>

<pre><code>        String[] selectionArgs = {"",""};
    selectionArgs[0] = Integer.toString(routeScheduleID);
    selectionArgs[1] = runDate.toString();
</code></pre>

<p>But in this case I have an unknown number of elements.  </p>

<p>How can I change the number at runtime (or use something like an Array and convert back to String[].  Is this possible?</p>
