title: How to use ArrayAdapter<myClass>
body: <pre><code>ArrayList&lt;MyClass&gt; myList = new ArrayList&lt;MyClass&gt;();
  
  ListView listView = (ListView) findViewById(R.id.list);
  
  ArrayAdapter&lt;MyClass&gt; adapter = new ArrayAdapter&lt;MyClass&gt;(this, R.layout.row,
      to, myList.);
  listView.setAdapter(adapter);
  </code></pre>
  
  <h2>Class: MyClass</h2>
  
  <pre><code>class MyClass {
      public String reason;
      public long long_val;
  }
  </code></pre>
  
  <p>I have created row.xml in layouts, but don't know how to show both reason and long_val in the ListView using ArrayAdapter.</p>