title: Java - Find Element in Array using Condition and Lambda
body: <p>In short, I have this code, and I'd like to get an specific element of the array using a condition and lambda. The code would be something like this:</p>
  
  <pre><code>Preset[] presets = presetDALC.getList();
  Preset preset = Arrays.stream(presets).select(x -&gt; x.getName().equals("MyString"));
  </code></pre>
  
  <p>But obviously this does not work. In C# would be something similar but in Java, how do I do this?</p>