java 8 temukan dalam daftar

List<String> ss = Arrays.asList({"one", "two", "four"});
String s = ss.stream()
  .filter(x -> "two".equals(x))
  .findAny()
  .orElse(null);
Nutty Nightingale