Never mind, I see the light now.

On 9/20/2011 11:46 PM, James Kosin wrote:
> Okay, it is late... so my brain cells may not be working correctly.
>
> But, in Spans:
>>   /**
>>    * Returns the length of this span.
>>    *
>>    * @return the length of the span.
>>    */
>>   public int length() {
>>     return end-start;
>>   }
> This means one of the endpoints in the span don't attribute to the
> length of the span.  Is this correct?  Does this mean a span with a
> start and end say at 1,1 has no length?  Or is it suppose to be 1?
>
> I have similar problems when counting the number of locations to fill
> for a memory block when doing (end - start) type arithmetic.  What
> happens is the length ends up being one short.
>
> Thanks,
> James

Reply via email to