R ou L

  • 10
  • Bloqué
Nos amis de la planète Shi-Noix ont un problème inhabituel : ils ont vraiment du mal à distinguer les lettres « r» et « l ». Nous avons décidé de leur venir en aide avec cette mission. La méthode expérimentale corriger va supprimer d'une liste de chaînes tous les mots contenant la lettre « r », et reproduire tous les mots contenant la lettre « l ».
Tu ne peux pas réaliser cette mission, car tu n'es pas connecté(e).
Commentaires (2)
  • Populaires
  • Nouveau
  • Anciennes
Tu dois être connecté(e) pour laisser un commentaire
Anonymous #10837202
niveau France, France, France
14 octobre 2021, 13:12
Hello, I have a lot of problems with this exercise, many misunderstandings. For example, my second list (liste2) has a size of 3, why when I enter my command: for (int i = 0; i < liste2.size(); i++) everything works, but when I replace the "liste2.size()" in my loop by 3 it gives me an error ? Knowing that if I replace my loop by a single test indicating that x = liste2.get(2) everything works ....? And, why doesn't the program duplicate the words containing an "l" and without an "r" ??? thank you
John Squirrels Website Admin chez CodeGym
14 octobre 2021, 14:09
If you want help with your task, please create a question in the Help section. Otherwise, no one can see your full code and no one can help you.