title: can not resolve method get(int)
body: <p>After getting response from server i am storing points in my integer array and i am trying to add that array in my horizontal scrollview,but it gives me error in my loop,following is my code can anyone help?thanks advance</p>
  
  <p>Error near this line</p>
  
  <pre><code>tv.setText(points.get(i));
  </code></pre>
  
  <p>JAVA</p>
  
  <pre><code> protected ArrayList&lt;HashMap&lt;String, String&gt;&gt; doInBackground(
                  String... args) {
              ServiceHandler sh = new ServiceHandler();
  
              // Making a request to url and getting response
  
              String jsonStr = sh.makeServiceCall(PLACE_URL, ServiceHandler.GET);
  
              Log.d("Response: ", "&gt; " + jsonStr);
  
              if (jsonStr != null) {
                  try {
                     placejsonObj = new JSONArray(jsonStr);
                      // state_list = jsonObj.getJSONArray(COUNTRY_LIST);
                      // looping through All Contacts
  
                          jobject = placejsonObj.getJSONObject(0);
                          msgs=jobject.getString("user_status");
  
                          pointsarray=placejsonObj.getJSONArray(1);
                         // points=pointsarray.getString("point");
                      System.out.println("Kya yar" + "Failure"+pointsarray);
                      points = new int[pointsarray.length()];
                      for(int m=0; m&lt;pointsarray.length(); m++) {
                          points[m] = pointsarray.getJSONObject(m).getInt("point");
                      }
                      System.out.println("array contains" + points.length + " elements");
  
  
                  } catch (JSONException e) {
                      e.printStackTrace();
                  }
              } else {
                  Log.e("ServiceHandler", "Couldn't get any data from the url");
              }
              return null;
          }
  
  
  protected void onPostExecute(ArrayList&lt;HashMap&lt;String, String&gt;&gt; result) {
  
              super.onPostExecute(result);
              pDialog.dismiss();
  
  
  
  
           for (int i = 0; i &lt; points.length; i++) {
              tv = new TextView(getActivity());
              tv.setText(points[i]+",");
             tv.setTag(points[i]);
              yourLayout.addView(tv);
          }
  
          tv.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  int point = (int) view.getTag();
                  Toast.makeText(getActivity(),point,Toast.LENGTH_SHORT).show();
              }
          });
  
  
          }
      }
  </code></pre>