Here you can find the source of firstFunnyString(List
public static String firstFunnyString(List<String> words, String containedTest)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { public static String firstFunnyString(List<String> words, String containedTest) { String res = words.stream().map(String::toUpperCase).filter(s -> s.length() < 7) .filter(s -> s.contains(containedTest)).findFirst().orElse(null); return res; }//w ww .j a v a 2 s . c o m }