VOOZH about

URL: https://www.geeksforgeeks.org/java/matcher-find-method-in-java-with-examples/

⇱ Matcher find() method in Java with Examples - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Matcher find() method in Java with Examples

Last Updated : 26 Nov, 2018
The find() method of Matcher Class attempts to find the next subsequence of the input sequence that find the pattern. It returns a boolean value showing the same. Syntax:
public boolean find()
Parameters: This method do not takes any parameter. Return Value: This method returns a boolean value showing whether a subsequence of the input sequence find this matcher's pattern Below examples illustrate the Matcher.find() method: Example 1:
Output:
true
Example 2:
Output:
true
Reference: Oracle Doc
Comment