random.ints(1000000,1,3)
.boxed()
.collect(Collectors.groupingBy(Function.identity(),
Collectors.counting()))
.forEach((side, frequency) ->
System.out.printf("%-6d%d%n", side, frequency));
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here