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 327 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!
1
A code kata is a small exercice thought to train a certain development competence1
What does SRP stand for?2
Write a function that returns the first character of a string in Java1
A Java class that converts Arabic numbers to Roman numerals.4
This code allows to randomly get numbers between 1 to 31 in results. Should have declard SimpleDateFormat in the Thread.1
What is the name of the design pattern used to structure complex applications by considering the problem domain?1
Java code that replaces keys in a template with their values.