Re: compare with empty string uses equals method or == ??
From: Tony Morris (dibblego_at_optusnet.com.au)
Date: 07/02/04
- Next message: Thomas 'PointedEars' Lahn: "Re: How to debug Javascript in IE (inside JSP files)"
- Previous message: Chris Smith: "Re: Schedule Class Execution"
- In reply to: Hemal Pandya: "Re: compare with empty string uses equals method or == ??"
- Next in thread: Hemal Pandya: "Re: compare with empty string uses equals method or == ??"
- Reply: Hemal Pandya: "Re: compare with empty string uses equals method or == ??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 2 Jul 2004 10:40:24 +1000
> I usually declare my 'public static final's to as String rather then
> int for a somewhat safe usage, as a compromise in absence of enums. I
> would appreciate any comments you may have on this scheme.
Comment: poor form.
Investigate the Type-safe enumeration design pattern.
-- Tony Morris (BInfTech, Cert 3 I.T.) Software Engineer (2003 VTR1000F) Sun Certified Programmer for the Java 2 Platform (1.4) Sun Certified Developer for the Java 2 Platform
- Next message: Thomas 'PointedEars' Lahn: "Re: How to debug Javascript in IE (inside JSP files)"
- Previous message: Chris Smith: "Re: Schedule Class Execution"
- In reply to: Hemal Pandya: "Re: compare with empty string uses equals method or == ??"
- Next in thread: Hemal Pandya: "Re: compare with empty string uses equals method or == ??"
- Reply: Hemal Pandya: "Re: compare with empty string uses equals method or == ??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
Loading