From owner-freebsd-java@FreeBSD.ORG Fri May 21 09:41:19 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6133816A4CE for ; Fri, 21 May 2004 09:41:19 -0700 (PDT) Received: from anna.web4.hm (anna.web4.hm [81.3.4.66]) by mx1.FreeBSD.org (Postfix) with SMTP id 4242843D1F for ; Fri, 21 May 2004 09:41:18 -0700 (PDT) (envelope-from thorsten@tgreiner.net) Received: (qmail 24778 invoked by uid 760); 21 May 2004 16:40:40 -0000 Received: from thorsten@tgreiner.net by anna by uid 503 with qmail-scanner-1.21 (clamdscan: 0.70-rc. spamassassin: 2.63. Clear:RC:1(80.141.14.78):. Processed in 0.068214 secs); 21 May 2004 16:40:40 -0000 Received: from unknown (HELO tybalt) (80.141.14.78) by anna.web4.hm with SMTP; 21 May 2004 16:40:40 -0000 Date: Fri, 21 May 2004 18:40:36 +0200 From: Thorsten Greiner To: Christopher Rued Message-ID: <20040521164036.GA782@tybalt.greiner.local> Mail-Followup-To: Christopher Rued , java@freebsd.org References: <7FF62A49079FD511B14400065B19EF120550B8A0@cprnt003.satyam.com> <40AE1884.3090206@xsb.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: <40AE1884.3090206@xsb.com> X-GPG-Fingerprint: ED45 DF41 BE30 6FF5 DC4F 15C3 4538 6598 E865 F66A User-Agent: Mutt/1.5.6i cc: java@freebsd.org Subject: Re: EX-OR Boolean Operator in Java X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 May 2004 16:41:19 -0000 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Christopher Rued [2004-05-21 18:31]: > (a && !b) || (!a && b). > There is no XOR boolean operator in Java, AFAIK. Come on guys, think before you hit that send button: the boolean operators in Java are: ! NOT & AND | OR ^ XOR There are two short-ciruit operators: && AND || OR These do not evaluate their right hand side expression if the left side is either false (&&) or true (||). You actually should find that in any entry level book on Java programming. Regards -Thorsten --=20 You're not out of shape... because technically a circle is a shape. =20 This message is digitally signed. To verify its integrity, download a copy of GnuPG for your operating system from http://www.gnupg.org . --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFArjEERThlmOhl9moRAikGAJ9ejNXzAXAvGG4pEkqytEbz/dcBwACeNeWN bRhfv9y9DsCrHpe1EjYWpK4= =cX2g -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--