Java Matcher hitEnd() MethodJava Matcher hitEnd method of Java Matcher class is used to check the hits by the search engine. If the end of input was hit by the search engine in the last match operation performed by this matcher, then it returns true. Syntax:ParameterNA Returnstrue if the end of input was hit in the last match; false otherwise Since1.5 Example 1Output: find(): false hitEnd(): true Example 2Output: find() : true hitEnd(): true number of match by find() method : 2 Example 3Output: First Capturing Group, (a*b) Match String end(): 7 First Capturing Group, (a*b) Match String end(): 14 First Capturing Group, (a*b) Match String end(): 20 hitEnd(): true Next TopicJava-matcher-lookingat-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India