title: copy specific item from one arraylist to another arraylist
body: <p>im a newbie at android progmmaing and i want to ask a simple question</p>
  
  <p>i have managed to parse an rss feed and to save specific elements (such as Title , pubdate, link , media and description) in a database. then i used an arraylist to retrieve the data from the database. the code for this is </p>
  
  <pre><code>  public static  ArrayList&lt;Item&gt; GetItems(AndroidDB androiddb) {
     SQLiteDatabase DB = androiddb.getReadableDatabase();
      ArrayList&lt;Item&gt; result = new ArrayList&lt;Item&gt;();
      try {    
      Cursor c = DB.rawQuery("select * from ITEMS_TABLE", null);
      if (c.getCount() &gt; 0) {
          c.moveToFirst();
          do {
              result.add(new Item(
                      c.getString(0),
                      c.getString(1),
                      c.getString(2),
                      c.getString(3),
                      c.getString(4)));
          } while (c.moveToNext());
  
      } 
    c.close();
    DB.close();
  } catch (SQLException e){
      Log.e("DATABASE", "Parsing Error", e);
  
  }
  return result;
  </code></pre>
  
  <p>}</p>
  
  <p>where 0 the first column of the database which contains the title element</p>
  
  <p>now i want to create a  listview only with the title element so i created a ArrayList in my onCreate method and my question is how can i copy from the previous ArrayList only the items that refers to the Title element. i have written this part of code. What i supposed to write in the loop to copy the specific item?</p>
  
  <pre><code>      ArrayList&lt;String&gt; first_item = new ArrayList&lt;String&gt;();
                   items=AndroidDB.GetItems(rssHandler.androiddb);
                   int numRows=items.size();
                      for(int i=0; i &lt; numRows; ++i)  {
  
                  first_item.add());
                              }
  
          setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.list_item, first_item));
  
                    ListView lv = getListView();
                    lv.setTextFilterEnabled(true);
  
                    lv.setOnItemClickListener(new OnItemClickListener() {
                      public void onItemClick(AdapterView&lt;?&gt; parent, View view,
                          int position, long id) {
                        // When clicked, show a toast with the TextView text
                        Toast.makeText(getApplicationContext(), ((TextView) view).getText(),
                            Toast.LENGTH_SHORT).show();
                      }
                    });
                  } 
  
          catch (Exception e) {
              tv.setText("Error: " + e.getMessage());
              Log.e(MY_DEBUG_TAG, "Parsing Error", e);
              } 
          this.setContentView(tv);
      }
  </code></pre>
  
  <p>thanks in advance</p>