I have List<String> and List<Filter>.
public interface Filter{
List<String> filter(List<String> strToFilter);
}
How can I pass the List<String> through the list of filters and use the output of one filter as an input to the other filter? I can do this using for-loop. I wanted to know how to achieve this using java 8 stream and lambda