Date: 02/26/06 (Java Web) Keywords: java Almost every java developer finds one fine morning that he cannot compare String with "==" as he has been doing with int or char. Then either he finds out or someone kindly tells him that objects cannot be compared with "==". He has to use equals(Object) method. However rarely, if ever, he realizes that it [...] Source: http://blog.taragana.com/index.php/archive/how-to-compare-strings-with/
|