@@ -0,0 +1,485 @@
+package colecoes;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Apublic class ForFuncional %7B%0A%09%0A%09public static void main(String%5B%5D args)%7B%0A%09%09List%3CInteger%3E numeros = new ArrayList%3CInteger%3E();%0A%09%09numeros.add(0);%0A%09%09numeros.add(1);%0A%09%09numeros.add(2);%0A%09%09%0A%09//%09for(int n: numeros)%7B%0A%09%09//%09System.out.println(n);%0A%09//%09%7D%0A%09%09%0A%09//Consumer%3CInteger%3E cons = (Integer n) -%3E System.out.println(n);%0A%09//numeros.forEach((Integer n) -%3E System.out.println(n));%0A%09%09numeros.forEach(System.out::println);%0A%09%09%0A%09%7D%0A%7D%0A

Create ForFuncional.java