[ale] Introduction
Geoffrey
esoteric at 3times25.net
Wed Dec 1 16:03:31 EST 2004
Jason Day wrote:
> On Wed, Dec 01, 2004 at 12:58:39PM -0500, Geoffrey wrote:
>
>>Jason Day wrote:
>>
>>>On Wed, Dec 01, 2004 at 10:25:18AM -0500, Geoffrey wrote:
>>>
>>>
>>>>No, character - character = numeric:
>>>>
>>>>intval = '5' - '2';
>>>
>>>
>>>I'm confused... this is exactly what Java does.
>>
>>No, the code you provided was:
>>
>>Character.getNumericValue('z')-Character.getNumericValue('a')
>
>
> That wasn't me, I think it was Jason Vinson.
Oops, sorry.
> Instead of that, you could
> just do this:
>
> int diff = '5' - '2';
>
> And diff becomes 3.
That works in java?
--
Until later, Geoffrey
More information about the Ale
mailing list