title: how to convert created new list of matched values from existing list using java stream
body: <p>Currently I used nested for-each loop to achieve the same.</p>
  <pre><code>List&lt;String&gt; valueListToBeFilter = Arrays.asList(&quot;8 digit mobile number&quot;, &quot;Please enter mobile number.&quot;);
  List&lt;String&gt; newfoundValueList = new ArrayList&lt;&gt;();
  
  for (String value : valueListToBeFilter) {
      for (WebElement element : _webElementsErrorList) {
          if (element.getText().contains(value))
              newfoundValueList.add(element.getText());
      }
  }
  newfoundValueList.forEach(System.out::println);
  </code></pre>
  <p>I am getting the required result, but how to achieve the same using stream</p>