-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chuck,
Caldarale, Charles R wrote: >> From: Massimiliano PASQUALONI >> [mailto:[EMAIL PROTECTED] >> Subject: "if" don't work?!?!? >> >> if (Pippo == "on") { > > Guaranteed to be false. Not always: String Pippo = "on"; if(Pippo == "on") System.err.println("Pippo is on, man!"); ...will print the string ;) But, of course, this is a /super/ special case where Java's constant pool is involved. Someone who doesn't understand why "Pippo == "on" doesn't always work is going to have their mind blown by the constant pool. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGUzc99CaO5/Lv0PARAoktAJ0aTbR2XlrB3CD6PjMUlEsJMIO0pwCgn1zy SwD0cbGDStbYkxoYtcummaI= =J+fl -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]