title: How to make an ArrayAdapter (android studio)
body: <p>I want to display 10 elements/strings that I have in my java file, the <code>ArrayList</code>:</p>
  
  <pre><code>ArrayList&lt;String[]&gt;Numbers = new ArrayList&lt;String[]&gt;();
  
  String[] ListOfNumbers  = new String[10];
  
          ListOfNumbers[0] = "One";
          ListOfNumbers[1] = "Two";
          ListOfNumbers[2] = "Three";
          ListOfNumbers[3] = "Four";
          ListOfNumbers[4] = "Five";
          ListOfNumbers[5] = "Six";
          ListOfNumbers[6] = "Seven";
          ListOfNumbers[7] = "Eight";
          ListOfNumbers[8] = "Nine";
          ListOfNumbers[9] = "Ten";
  </code></pre>
  
  <p>And I would like to display all of those in the layout.</p>
  
  <p><strong>UPDATE:</strong>
  I added, in the java file, this:</p>
  
  <pre><code>ListView _list = (ListView) findViewById(R.id._list);
  ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;&gt;(getApplicationContext(), android.R.layout.simple_list_item_1  , ListOfNumbers );
  
  _list.setAdapter(adapter);
  </code></pre>
  
  <p>And in the xml:</p>
  
  <pre><code>&lt;ListView
          android:id="@+id/_list"
          android:layout_height="wrap_content"
          android:layout_width="match_parent"&gt;
      &lt;/ListView&gt;
  </code></pre>
  
  <p>But now that I run the Emulator, it collapses.</p>