title: How to set my textview to display all elements in my json array
body: <p>parsing json and i'm trying to setText a textview to do all elements in my array. Obviously I am doing something wrong here, would appreciate any help.</p>
  
  <pre><code>        TextView tv1 = (TextView) findViewById(R.id.textView1);
          TextView tv2 = (TextView) findViewById(R.id.textView2);
          try {
              String buildings = getJSON("http://iam.colum.edu/portfolio/api/course?json=True");
  
              //JSONObject jsonObject = new JSONObject(buildings);
              JSONArray queryArray = new JSONArray(buildings);
              //queryArray = queryArray.getJSONArray(0);
              List&lt;String&gt; list = new ArrayList&lt;String&gt;();
              for (int i=0; i&lt;queryArray.length(); i++) {
                  list.add( queryArray.getString(i) );
  
              }
              String text = list.get(0).toString();
              String arr[] = text.split(" ");
              arr[0] = arr[0].trim();
              for(int i=0;i&gt;queryArray.length();++i)
              {
                  tv1.setText(list[i]);
              }
  </code></pre>