This code example demonstrates the use of lambda expressions and the Stream API to filter and transform a list of strings. The output will be:
public class Main public static void main(String[] args)
[APPLE, CHERRY]
public class Main public static void main(String[] args) java runtime environment 1.8.0 download