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 18:12:32 -0500

Just want to clarify, my question is, in another word, how to find the
reference to "abc" from str? Thanks!

-----Original Message-----
From: advanced-java-admin@xxxxxxxxxxxxxxxxxxxxxx
[mailto:advanced-java-admin@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Alvin
Wang
Sent: Thursday, March 28, 2002 5:58 PM
To: Advanced-Java
Subject: [Advanced-java] Odd question
Importance: High


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!

_______________________________________________
Advanced-java mailing list
Advanced-java@xxxxxxxxxxxxxxxxxxxxxx
http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java