✅ 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);