View Single Post
Old 08-06-2012, 02:41 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,657
Thanks: 4
Thanked 2,451 Times in 2,420 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
return (s1 == s2); compares the memory space of two objects. Strings cannot be compared this way, you must use s1.equals(s2).
Fou-Lu is offline   Reply With Quote