Question from the Java and Craftsmanship test

Write a Java implementation of the FizzBuzz code kata.

Hard

This code is an implemention of the FizzBuzz code kata

IntStream.rangeClosed(1, 100)
    .mapToObj(i -> i % 5 == 0 ? (i % 7 == 0 ? "FizzBuzz" : "Fizz") : (i % 7 == 0 ? "Buzz" : i))
    .forEach(System.out::println);

What assertion are true about this code?

Author: Clément DevosStatus: PublishedQuestion passed 318 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!