title: How to pass array list to alert dialog's method builder.setItems
body: <p>Is there any way to pass arrayList to alertDialog method <code>builder.setItems</code> because it is accepting string array</p>
  
  <pre><code>public void getMember() {
      ArrayList&lt;String&gt; MemberList = new ArrayList&lt;&gt;();
      MemberList.add("tahir");
      MemberList.add("usman");
      MemberList.add("waqas");
      AlertDialog.Builder builder = new AlertDialog.Builder(ManagerHome.this);
      builder.setTitle("Member List");
      builder.setIcon(R.drawable.ic_format_list_bulleted_black_24dp);
  
      builder.setItems(MemberList, new DialogInterface.OnClickListener() {
          @Override
          public void onClick(DialogInterface dialogInterface, int i) {
  
          }
      });
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/4vMrb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4vMrb.png" alt="enter image description here"></a></p>