I have an asynctask the places data into an a listView. It only places the last input into the listView. I am not sure what I am suppose to do to place the 3 strings into the listView item. I know I am doing this wrong but this is my current code,
    class loadComments extends AsyncTask<JSONObject, String, JSONObject> {
            @Override
            protected void onPreExecute() {
                super.onPreExecute();
            } 
            @Override
            protected void onProgressUpdate(String... values) {
                super.onProgressUpdate(values);
            } 
            protected JSONObject doInBackground(JSONObject... params) {
                JSONObject json2 = CollectComments.collectComments(usernameforcomments, offsetNumber);
                    return json2;
            }
            @Override
            protected void onPostExecute(JSONObject json2) {
                try {  
                    if (json2.getString(KEY_SUCCESS) != null) { 
                        registerErrorMsg.setText("");
                        String res2 = json2.getString(KEY_SUCCESS);
                        if(Integer.parseInt(res2) == 1){ 
                            JSONArray commentArray = json2.getJSONArray(KEY_COMMENT);
                            String comments[] = new String[commentArray.length()];
                            for ( int i=0; i<commentArray.length(); i++ ) {
                                comments[i] = commentArray.getString(i);
                            }
                            JSONArray numberArray = json2.getJSONArray(KEY_NUMBER);
                            String numbers[] = new String[numberArray.length()];
                            for ( int i=0; i<numberArray.length(); i++ ) {
                                numberss[i] = numberArray.getString(i);
                            }
                            JSONArray usernameArray = json2.getJSONArray(KEY_USERNAME);
                            String usernames[] = new String[usernameArray.length()];
                            for ( int i=0; i<usernameArray.length(); i++ ) {
                                usernames[i] = usernameArray.getString(i);
                            }
                            setListAdapter(new ArrayAdapter<String>(DashboardActivity.this, R.layout.list_item, R.id.listComment, comments));
                            setListAdapter(new ArrayAdapter<String>(DashboardActivity.this, R.layout.list_item, R.id.listNumber, number));
                            setListAdapter(new ArrayAdapter<String>(DashboardActivity.this, R.layout.list_item, R.id.listPostedBy, usernames));
                            }//end if key is == 1
                        else{
                            // Error in registration
                            registerErrorMsg.setText(json2.getString(KEY_ERROR_MSG));
                        }//end else
                    }//end if
                } //end try
                catch (JSONException e) { 
                    e.printStackTrace();
                }//end catch    
            }
        }
        new loadComments().execute();
 
     
    