title: Working with 2D array in android studio
body: <p>I am new in android studio,
  I am working with listItem. below is some of my code</p>
  
  <pre><code>String[] items = {
              "1 st",
              "2 nd",
              "3 rd",
              "4 th"};
  
      titleList = new ArrayList&lt;&gt;(Arrays.asList(items));
  
      adapter = new ArrayAdapter&lt;String&gt;(this,R.layout.list_item, R.id.txtitem,titleList);
  
  
      listView.setAdapter(adapter);
  </code></pre>
  
  <p>Above code working fine. but i want work with more then 1 Array tree I want to work with 2D array but i can't understand what to do here is my new code I tried. but failed</p>
  
  <pre><code>String[][] items = {
  
               {"1 st","12 th Sept"},
               {"2 nd","13 th Sept"},
               {"3 rd","14 th Sept"},
               {"4 th","15 th Sept"},
  };
  
  titleList = new ArrayList&lt;&gt;(Arrays.asList(items[0]));
  dateList = new ArrayList&lt;&gt;(Arrays.asList(items[1]));
  
      adapter = new ArrayAdapter&lt;String&gt;(this,R.layout.list_item, R.id.txtitem,titleList);
      adapter = new ArrayAdapter&lt;String&gt;(this,R.layout.list_item, R.id.date,dateList);
  
      listView.setAdapter(adapter);
  </code></pre>