On 9/22/11 2:17 AM, James Kosin wrote:
public boolean contains(int index) { return start<= index&& index<= end; }The first is okay, but the second definition is a bit odd; since, the end is included as part of the span when using index as an input. Is this correct?
Good catch, doesn't make sense to me. It should only return true for indexes which point to elements which are included in the span, right? Jörn
