title: What is the difference between listViewAdapter.clear() and list.clear()?
body: <p>Okay, I think I have understood it, but I just want to make sure of it. I have got a ListViewAdapter that contains a List.What I wanna do is search thinks in the database and show in a ListView. This piece of code adds an item to my listView.</p>
  
  <pre><code>list.addAll(sqh.DisplayRecords(sqdb));
      listViewAdapter = new ArrayAdapter(this,android.R.layout.simple_list_item_1,list);
      listview.setAdapter(listViewAdapter);
      search.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
             listViewAdapter.clear();
  
             list.clear();
             list.addAll(sqh.DisplayRecords(sqdb));
             list.add("another one");
  
          }
      });
  </code></pre>
  
  <p>Whit this other piece of code, only clearing the listviewAdapter and adding another item to the list, just, adds the last item, instead of all the items of the list, which should be there.</p>
  
  <pre><code>        list.addAll(sqh.DisplayRecords(sqdb));
      listViewAdapter = new ArrayAdapter( this,android.R.layout.simple_list_item_1,list);
      listview.setAdapter(listViewAdapter);
      search.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
              listViewAdapter.clear();
  
              list.add("another one");
  
          }
      });
  </code></pre>
  
  <p>Well, I think I understood it while I was writing this. The third one and the first one are pretty the same.</p>
  
  <pre><code>list.addAll(sqh.DisplayRecords(sqdb));
      listViewAdapter = new ArrayAdapter( this,android.R.layout.simple_list_item_1,list);
      listview.setAdapter(listViewAdapter);
      search.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
              listViewAdapter.clear();
  
              list.addAll(sqh.DisplayRecords(sqdb));
              list.add("another one");
  
          }
      });
  </code></pre>
  
  <p>The listViewAdapter.clear(); would be clearing the list of the adapter, right? Why, when I do just list.clear(), the list view is not cleared?</p>