Region Matches
String s1 = “All the King’s Horses”;
String s2 = “and all the King’s Men”;
s1.regionMatches(9,s2,12,4) // true
s1.regionMatches(0,s2,4,4) // false
s1.regionMatches(true,0,s2,4,4) //true
Previous slide
Next slide
Back to first slide
View graphic version