title: android reverse int array
body: <p>I have successfully parsed JSONArray into list by using the below function </p>
  
  <pre><code>public List&lt;Integer&gt; ParseJson(String json, List&lt;Integer&gt; myList) {
      JSONArray jsonArray = null;
  
      try {
          JSONObject mainJson = new JSONObject(json);
          jsonArray = mainJson.getJSONArray("result");
  
          myList = new ArrayList&lt;Integer&gt;();
          for (int i = 0; i &lt; jsonArray.length(); i++) {
  
              myList.add(Integer.parseInt(jsonArray.get(i).toString()));
  
          }
  
          // System.out.println(myList);
  
      } catch (JSONException e) {
          e.printStackTrace();
      }
  
      Collections.reverse(myList);
      return myList;
  
  }
  </code></pre>
  
  <p>Now I need the List into reverse order. What would be the optimized way to do that?</p>