What is the use of regionMatches method in java
This article mainly introduces what is the use of the regionMatches method in java, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
RegionMatches method:
Note: the regionMatches () method is used to detect whether two strings are equal in a region.
Public class RegionMatches {public static void main (String [] args) {int number = 0; String s = "student;entropy;ENgage,English,client,eye"; String Q = "en"; / / the string for to be found (int kudo Tinck