title: decreasing the size of an arraylist
body: <p>Hi
  I have a question that in the bellow code do we need to write <code>n--;</code> ?</p>
  
  <pre><code>        int n = pointList.size();
      for(int i=pointList.size()-1;i&gt;=0;i--){
          for(int j=0;j&lt;list.size();j++){
              if(pointList.get(i).equals(list.get(j))){
                  pointList.remove(i);
                  n--;
              }
          }
      }
  </code></pre>
  
  <p>Also list is an arrayList.
  thanks.</p>