title: Can only iterate over an array or an instance of java.lang.Iterable
body: <p>Hi I keep getting this error, I'm trying to get tweets from twitter via JSON and cant seem to get rid of this on the "arr". Would I have to do a different for loop? I did try this but it keeps returning the same error.</p>
  
  <pre><code> public ArrayList&lt;Tweet&gt; getTweets(String searchTerm, int page) {
        String searchUrl = 
              "http://search.twitter.com/search.json?q=@" 
              + searchTerm + "&amp;rpp=100&amp;page=" + page;
  
        ArrayList&lt;Tweet&gt; tweets = 
              new ArrayList&lt;Tweet&gt;();
  
        HttpClient client = new  DefaultHttpClient();
        HttpGet get = new HttpGet(searchUrl);
  
        ResponseHandler&lt;String&gt; responseHandler = 
              new BasicResponseHandler();
  
        String responseBody = null;
        try {
          responseBody = client.execute(get, responseHandler);
        } catch(Exception ex) {
          ex.printStackTrace();
        }
  
        JSONObject jsonObject = null;
        JSONParser parser = new JSONParser();
  
        try {
          Object obj = parser.parse(responseBody);
          jsonObject=(JSONObject)obj;
        }catch(Exception ex){
          Log.v("TEST","Exception: " + ex.getMessage());
        }
  
        JSONArray&lt;Object&gt; arr = null;
  
        try {
          Object j = jsonObject.get("results");
          arr = (JSONArray)j;
        } catch(Exception ex){
          Log.v("TEST","Exception: " + ex.getMessage());
        }
  
        for(Object t : arr) {
          Tweet tweet = new Tweet(
            ((JSONObject)t).get("from_user").toString(),
            ((JSONObject)t).get("text").toString(),
            ((JSONObject)t).get("profile_image_url").toString()
          );
          tweets.add(tweet);
        }
  
        return tweets;
      }
  </code></pre>
  
  <p>Please help!!</p>