title: Public ArrayAdapter for ListView
body: <p>Referring to the below codes. I wanted to know why do I need to put in one object and not all the objects from the strings. This codes are from a Custom ListView Adapter.</p>
  
  <p><a href="http://developer.android.com/reference/android/widget/ArrayAdapter.html" rel="nofollow">public ArrayAdapter (Context context, int textViewResourceId, T[] objects)</a></p>
  
  <p>Working Fine </p>
  
  <pre><code>public ListViewAdapter(Context context, String[] first, String[] second, String[] third) {
              super(context, R.layout.listview_item, first);
              this.context = context;
              this.first = first;
              this.second = second;
              this.third = third;
          }
  </code></pre>
  
  <p>Error if I do this. </p>
  
  <pre><code>public ListViewAdapter(Context context, String[] first, String[] second, String[] third) {
          super(context, R.layout.listview_item, first, second, third);
          this.context = context;
          this.first = first;
          this.second = second;
          this.third = third;
      }
  </code></pre>
  
  <p>Error : The constructor ArrayAdapter(Context, int, String[], String[], String[]) is undefined</p>
  
  <p>Original Source</p>
  
  <pre><code>public class ListViewAdapter extends ArrayAdapter&lt;String&gt; {
      Context context;
      String[] first;
      String[] second;
      String[] third;
      LayoutInflater inflater;
  
      public ListViewAdapter(Context context, String[] first, String[] second, String[] third) {
          super(context, R.layout.listview_item, first);
          this.context = context;
          this.first = first;
          this.second = second;
          this.third = third;
      }
  </code></pre>