Posts by user63259 • 17 points
1 post
-
0
votes1
answer76
viewsQ: Query with Java 8 parameter to generate random numbers using Collectors.toList()
I have this method to generate random numbers in a ArrayList; public static List<Integer> gerarAleatorio() { List<Integer> aleatorios = new ArrayList<>(); while(aleatorios.size()…