This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Comparing Strings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Comparing Strings" Watch "Comparing Strings" New topic
Author

Comparing Strings

Anoop Krishnan
Ranch Hand

Joined: May 03, 2001
Posts: 163
Which the fastest way to compare two strings
S1="JAVA RANCH" & S2="JAVA RANCH"
S1.equals(S2) or S1.intern()==S2.intern()


I just want to know is there any body call my bean's Getter and Setter methods with "Please" in front - My favorite quip from Bugzilla
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I'm closing this duplicate post.
 
Consider Paul's rocket mass heater.
 
subject: Comparing Strings
 
Similar Threads
String intern (); method
Doubt in Strings
toString() on Integer class
Comparing Strings
one more with Strings ( == and equals)