Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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);
    }
}