A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Joined: May 03, 2001
Aug 22, 2001 03:19:00
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
Joined: Nov 22, 2008
Aug 22, 2001 08:21:00
I'm closing this duplicate post.
I agree. Here's the link:
subject: Comparing Strings
String intern (); method
toString() on Integer class
Doubt in Strings
one more with Strings ( == and equals)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014