Re: How to check variables for uniqueness ?
- From: Lew <lew@xxxxxxxxxxx>
- Date: Mon, 08 Jan 2007 23:46:47 -0500
Oliver Wong wrote:
Try this example:
{
System.out.println("beißen".equalsIgnoreCase("BEISSEN"));
System.out.println("beißen".toUpperCase().equals("BEISSEN"));
}
John Ersatznom wrote:
... The "equalsIgnoreCase"
method should ignore case, but not spelling. It shouldn't consider ... "beißen" equal to "beissen" either. Why? Because those pairs differ by spelling and not just capitalization!
That is how equalsIgnoreCase() works:
"beißen".equalsIgnoreCase("BEISSEN"): false
- Lew
.
- Follow-Ups:
- Re: How to check variables for uniqueness ?
- From: John Ersatznom
- Re: How to check variables for uniqueness ?
- References:
- Re: How to check variables for uniqueness ?
- From: John Ersatznom
- Re: How to check variables for uniqueness ?
- From: Oliver Wong
- Re: How to check variables for uniqueness ?
- From: John Ersatznom
- Re: How to check variables for uniqueness ?
- From: Oliver Wong
- Re: How to check variables for uniqueness ?
- From: John Ersatznom
- Re: How to check variables for uniqueness ?
- Prev by Date: Re: widening and boxing - why isn't it allowed?
- Next by Date: Re: Quick question
- Previous by thread: Re: How to check variables for uniqueness ?
- Next by thread: Re: How to check variables for uniqueness ?
- Index(es):
Relevant Pages
|