From: Martin DeMello Date: 2003-02-23T05:25:58+09:00 Subject: Re: even? and odd? methods in Integer class Warren Brown wrote: > I don't know why these methods are not predefined, but there is a > simpler (and presumably faster) check for even and odd. I use "mynumber[0] > == 0" to check for even and "mynumber[0] == 1" to check for odd. It is > trivial to add these to the Integer class (which may be why these are not > predefined): Neat! Never knew about Integer#[] martin