Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Advanced-java] Odd question


  • From: xwang@xxxxxxxxxxxxxxxxx (Alvin Wang)
  • Subject: [Advanced-java] Odd question
  • Date: Thu, 28 Mar 2002 17:57:50 -0500

Hi! It is a little odd. Let us say:

String str = new String("abc");

We all know that (str == "abc") is false. My question is how to manipulate
str to make str point to "abc" (because str knows that its value itself is
"abc"), or in the other word, to make (str == "abc") true?

Thanks!