List<Runnable> (List<String> list) { List<Runnable> result = list.stream().map(s -> new Runnable() { @Override public void run() { String str = s; if (str.isEmpty()) str = "none"; System.out.println(str); } }).collect(Collectors.toList()); return result; }