title: Why does ArrayList.subList(0, n) return a List of size n?
body: <p>I would have thought this question would have been answered before, but can't seem to find anything about it.</p>
  
  <p>My question is as the title says, why does creating a sublist from index to index, not return the total number of indexes I'd expect? </p>
  
  <p>A more detailed example:</p>
  
  <pre><code>List slice = points.sublist(20, 48);
  Log.i(TAG, slice.size());
  </code></pre>
  
  <p>I would expect the log to return 29 in the example above, but in actual fact it returns 28.</p>
  
  <p>Why does this happen and what is the correct solution to this? To add +1 to the second index, or -1 to the first index?</p>