harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov" <mike.fur...@gmail.com>
Subject Re: [jira] Commented: (HARMONY-482) Some code compares Strings with == operator
Date Tue, 23 May 2006 10:39:48 GMT
String post1=new String("POST");
String post2=new String("POST");

:)


On 5/23/06, Mikhail Loenko <mloenko@gmail.com> wrote:
>
> This is the only way I've found to make
> two different object instances of "POST" string, such that:
>
> post1.equals("POST");
> AND
> post2.equals("POST");
> AND
> post1!=post2
>
> Feel free to suggest another way
>
> Thanks,
> Mikhail
>
> 2




-- 
Mikhail Fursov
Intel Middleware Products Division

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message