title: Append String to native Java array
body: <p>Is there a more elegant way (preferably in the SDK) which will take an existing array of N String objects and append another String so that the array now has N+1 String objects? See below how I did it.</p>
  
  <pre><code>import java.util.Arrays;
  
  public class StringArrayAppend {
  
  /**
   * @param args
   */
  public static void main(String[] args) {
      String[] selectionArgs={"3","2"};
      //Is there a SDK method to Arrays.append(selectionArgs,"1");?
  
  
      int newSize=selectionArgs.length+1;
      int indexNewElem=selectionArgs.length;
      String[] selectionArgs2=new String[newSize];
      System.arraycopy(selectionArgs, 0, selectionArgs2, 0, selectionArgs.length);
      selectionArgs2[indexNewElem]="1";
      selectionArgs=selectionArgs2;
      selectionArgs2=null;
  
      System.out.println("selectionArgs="+Arrays.toString(selectionArgs));
  
  
  }
  </code></pre>
  
  <p>}</p>