logo

Crowdly

Browser

Add to Chrome

Quelle est la sortie du code suivant ? List<String> noms = List.of("Alice", ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Quelle est la sortie du code suivant ?

List<String> noms = List.of("Alice", "Bob",

"Charlie");

List<Integer> longueurs = noms.stream()

                                                 .map(String::length)

                                                 .toList();

System.out.println(longueurs);

More questions like this

Want instant access to all verified answers on moodle.myefrei.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome