title: Lambda expression with loop which contains few operations
body: <p>Could you please give me a tip, how do I can to create lambda expression for next Java code:</p>
  
  <pre><code>for (String symbol : word) {
    sendKeys(symbol);
  
    if (isElementVisible(word)) {
      clickByVisibleText(word);
      break;
    }
  }
  </code></pre>
  
  <p>I understand how to implement loop cycle,with if expression, but I don't understand how can I do that if loop contains some methods(<code>like sendKeys()</code>) and if with <code>break</code> operator.</p>