title: Get String Array from Cursor
body: <p>I have a SQLite Database with 45 different entries, each with:</p>
  
  <pre><code>public static final String TABLE = "Table";
  public static final String COLUMN_ID = "_id";
  public static final String COLUMN_HOUR = "hour";
  public static final String COLUMN_WEEK = "week";
  public static final String COLUMN_DAY = "day";
  public static final String COLUMN_NAME = "name";
  public static final String COLUMN_DESCRIPTION = "description";
  public static final String COLUMN_COLOUR = "colour";
  public static final String COLUMN_ROOM = "room";
  </code></pre>
  
  <p>now I want to read out all. I Do this with following:</p>
  
  <pre><code>public Cursor fetchAllSubject(){
      Cursor mCursor = database.query(true, TABLE, new String[] {
              COLUMN_ID, COLUMN_HOUR, COLUMN_WEEK, COLUMN_DAY, COLUMN_NAME, COLUMN_DESCRIPTION, COLUMN_COLOUR, COLUMN_ROOM},null
              , null, null, null, null, null);
      if (mCursor != null) {
          mCursor.moveToFirst();
      }
      return mCursor;
  }
  </code></pre>
  
  <p>In a other class I have this code to read all out:</p>
  
  <pre><code>dao = new DAO(this);
  Cursor subjectList = dao.fetchAllSubject();
  </code></pre>
  
  <p>Now I want to have for each entry an array with ID, Hour, week, ... but I have no idea how to do that.
  My first try was following:</p>
  
  <pre><code>ArrayList&lt;String&gt; mo1h = new ArrayList&lt;String&gt;();
  subjectList.moveToFirst();
  while(!subjectList.isAfterLast()) {
       mo1h.add(subjectList.getString(subjectList.getColumnIndex(dao.COLUMN_ID)));
       mo1h.add(subjectList.getString(subjectList.getColumnIndex(dao.COLUMN_HOUR)));
       mo1h.add(subjectList.getString(subjectList.getColumnIndex(dao.COLUMN_WEEK)));
       mo1h.add(subjectList.getString(subjectList.getColumnIndex(dao.COLUMN_DAY)));
       mo1h.add(subjectList.getString(subjectList.getColumnIndex(dao.COLUMN_NAME)));
       mo1h.add(subjectList.getString(subjectList.getColumnIndex(dao.COLUMN_DESCRIPTION)));
       mo1h.add(subjectList.getString(subjectList.getColumnIndex(dao.COLUMN_COLOUR)));
       mo1h.add(subjectList.getString(subjectList.getColumnIndex(dao.COLUMN_ROOM)));     
       subjectList.moveToNext();
  }
  </code></pre>
  
  <p>But everything is in mo1h, and I dont know how to devide it.
  The best would be to have a String[] for each. Has anybody an Idea?
  Thanks!</p>