String equality
Suppose:
if (s1 == s2)returns false!
Use if (s1.equals(s2)) instead
equals is another method of class String
Previous slide
Next slide
Back to first slide
View graphic version