title: JSONArray remove cannot find symbol error in JAVA
body: <p>[Description]<br>
  1. Using Java<br>
  2. Use org.json.JSONArray and org.json.JSONObject<br>
  [Problem]<br>
  When I call JSONArray's <code>remove()</code> method, always get "cannot find symbol: method remove(int)" when compile my project, any help for this?</p>
  
  <p>Here is a similar question: <a href="https://stackoverflow.com/questions/8740377/how-to-remove-jsonarray-element-using-java">How to remove JSONArray element using Java</a><br>
  but the answer seems not correct, because that will just remove the inside JSONObject's key-value pair but not the whole insinde JSONObject.</p>
  
  <p>Example code:    </p>
  
  <pre><code>JSONArray test_arr = new JSONArray("[{'id':'1', 'name': 'name1'},{'id':'2', 'name':'name2'}]");
  test_arr.remove(1);  // here will cause the "cannot find symbol" error.
  </code></pre>
  
  <p>Thanks in advance for any help.</p>