java tutorial - Java Strings regionMatches() method - java programming - learn java - java basics - java for beginners
Description
Java Strings regionMatches() method in Java has two options that can be used to test if the areas of the two strings are equal.
Syntax
Syntax method:
Options
Detailed information about the parameters:
- toffset - the initial offset of the subdomain in this line;
- other is a string argument;
- ooffset - initial offset of the subdomain in the string argument;
- len - the number of characters to compare;
- ignoreCase - true if case insensitive when comparing characters.
Return value
- In Java region, MapMatches () returns true if the specified subdomain of this string matches the sub-domain of the specified string argument; otherwise false.