why from index is inclusive but end index is exclusive?
<p>Java API's like</p>

<ul>
<li>String.substring(int beginIndex, int endIndex)</li>
<li>String.subSequence(int beginIndex, int endIndex)</li>
<li>List.subList(int fromIndex, int toIndex)</li>
</ul>

<p>why from index is inclusive but end index is exclusive? Why shouldn't they have designed both inclusive?</p>
