title: Issue with array being generated via looped query results
body: <p>I have been looking/doing different takes of this code below:</p>
  
  <pre><code>public String[] getData() {
  
  String[] columns = new String[]{ app_name, app_location, app_dateTime};
  Cursor c = myDatabase.query(app_table, columns, null, null, null, null, null);
  
  int iName = c.getColumnIndex(app_name);
  int iLoc = c.getColumnIndex(app_location);
  int iDate = c.getColumnIndex(app_dateTime);
  
  
  String[] appointments = new String[c.getColumnCount()];
  int j = 0;
  for (c.moveToFirst(); !c.isAfterLast(); c.moveToNext()){
      appointments[j] = " Appointment Name: " + c.getString(iName) + " \n Location: " + c.getString(iLoc) + " \n Date: " + c.getString(iDate) + " \n\n ";
       j++;
      }
  return appointments;
  
      }
  }
  </code></pre>
  
  <p>basically the objective of this code is for my query results to be fed into an array and then be accessed in a ListView in another class through the "return appointments" section of the code. For some reason my code does not seem to work and I cannot quite put my finger on it, I have tried loops in loops I have tried dulling the code down and then expanding on what I can get to work, but none of it is giving me a solution.</p>