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