[ale] Introduction
Jason Day
jasonday at worldnet.att.net
Wed Dec 1 15:56:29 EST 2004
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. Instead of that, you could
just do this:
int diff = '5' - '2';
And diff becomes 3.
--
Jason Day jasonday at
http://jasonday.home.att.net worldnet dot att dot net
"Of course I'm paranoid, everyone is trying to kill me."
-- Weyoun-6, Star Trek: Deep Space 9
More information about the Ale
mailing list