How can I put a string and an integer into the same array?
<p>I have to following code. I want this to return an array e.g. <code>arg[]</code> that contains at <code>arg[0]</code> the number of the rows of my cursor and at <code>arg[1]</code> <code>String(0)</code> of my cursor. Since one is integer and the other is string I have a problem. Any ideas how to fix this?</p>

<pre><code>    public String[] getSubcategoriesRow(String id){
    this.openDataBase();
    String[] asColumnsToReturn = new String[] {SECOND_COLUMN_ID,SECOND_COLUMN_SUBCATEGORIES,};
    Cursor cursor = this.dbSqlite.query(SECOND_TABLE_NAME, asColumnsToReturn, SECOND_COLUMN_SUBCATEGORIES + "= \"" + id + "\"", null, null, null, null);

    String string = cursor.getString(0);
    int count = cursor.getCount();
    String arg[] = new String[]{count, string};
    cursor.close();
    return arg;
  }
</code></pre>

<p>The cursor and the results and correct i just need to compine them to an array in order to return that.</p>
