Given a String s and a char c, I\'m curious if there exists some method of producing a List list from s (where
String s
char c
List list
s
...Or in java-9:
Stream.of("Hello world!") .map(Scanner::new) .flatMap(s -> s.findAll("l")) .map(mr -> mr.start()) .forEach(System.out::println);