Easy
This code
Optional.of("42")
.map(Integer::parseInt)
.map(value -> value * 2)
.filter(value -> value < 50)
.orElseGet(() -> 51)
Author: Clément DevosStatus: PublishedQuestion passed 230 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Java
2
This code allows to randomly get numbers between 1 to 31 in results. Should have declard SimpleDateFormat in the Thread.1
A code kata is a small exercice thought to train a certain development competence0
In Java, enums can have methods and attributes.0
Explain why the second code compiles but the first one doesn't.0
Write a Java implementation of the FizzBuzz code kata.