Language extensions ?

Tom Tromey tromey@redhat.com
Fri Mar 28 05:45:00 GMT 2003


>>>>> "Robin" == Robin Garner <robin.garner@iname.com> writes:

Robin> boolean GT(int a, int b) {
Robin> if( a > 0 && b > 0 || a < 0 && b < 0 ) 
Also you can make this test cheaper:
 if (a ^ b > 0)
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /