Frank,
NOT questioning your "solution", but doesn't the call to equalsIgnoreCase("")
cause a temp String object to be created and destroyed? Or do todays JIT
compilers handle that case effectively?
Bob
On Thursday 24 June 2004 01:16 pm, Frank Zammetti wrote:
> I've always done
>
> if (test == null || test.trim().equalsIgnoreCase("")) { }
>
> (I'm anal about always using equalsIgnoreCase unless I know for sure that
> case sensitivity is required). No need to do anything more complex than
> that in my experience. "Always do the simplest thing that will work".
>
> Frank
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]