Java tutorial
public class Main { public static void main(String[] args) { String str1 = "tutorials from java2s.com"; String str2 = "Java tutorials from java2s.com"; str2 = "Consists of different Tutorials"; boolean match1 = str1.regionMatches(true, 14, str2, 22, 10); System.out.println("region matched = " + match1); } }