This is a simple example to show how use Predicate filters with Java 8.
The filter function returns a stream consisting of the elements of this stream that match the given predicate. A stream is a mechanism to create a sequence of elements supporting sequential and parallel aggregate operations. The predicate is applied to each element to determine if it should be included;