aspose file tools*
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
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.
 
Don't get me started about those stupid light bulbs.
 
subject: Comparing Strings