title: How to add new String in array Index
body: <p>How to add new string in alert dialog array index? </p>
  
  <p>Suppose array index contain A,B,C and I want to add D in array index separately what do I do?</p>
  
  <p>Let's suppose via items is</p>
  
  <pre><code>A
  B
  C
  </code></pre>
  
  <p>I want to add D additionally</p>
  
  <pre><code>AlertDialog.Builder builder2 = new AlertDialog.Builder(context);
  
  //Set its title
  builder2.setTitle("Pick an item");
  
  final String [] viaitems;
  viaitems = myString.split("&lt;");
  
  builder2.setItems(viaitems, new DialogInterface.OnClickListener() {
  
      // Click listener
      public void onClick(DialogInterface dialog, int item) {
          Toast.makeText(getApplicationContext(), viaitems[item],  
              Toast.LENGTH_SHORT).show();
      }
  
  });
  
  AlertDialog alert = builder2.create();
  
  //display dialog box
  alert.show();
  </code></pre>