title: How to set the arraylist item to be add in to reverse order?
body: <p>In My Application, I am going to store name of all the available tables from my database with this code:</p>
  
  <pre><code>     public ArrayList&lt;Object&gt; showAllTable()
    {
        ArrayList&lt;Object&gt; tableList = new ArrayList&lt;Object&gt;();
  
        String SQL_GET_ALL_TABLES = "SELECT name FROM sqlite_master WHERE type='table'";
        Cursor cursor = db.rawQuery(SQL_GET_ALL_TABLES, null);
        cursor.moveToFirst();
  
        if (!cursor.isAfterLast()) 
        {
            do 
            {
                if(cursor.getString(0).equals("android_metadata"))
                {
                    //System.out.println("Get Metadata");
                    continue;
                }
                else
                {
                    tableList.add(cursor.getString(0));
                }
            }
            while (cursor.moveToNext());
        }
        cursor.close();
  
        return tableList;
  
    }
  </code></pre>
  
  <p>Yes i am able to store it. But while i am going to display it in to ListView, it will display in such way that last created shown at last. I want to display the list of the table as Last created, display first in to ListView.</p>
  
  <p>Please help me, What should I have to do in my code to set such way of displaying tables?</p>