Initialisation branche steve

This commit is contained in:
2025-09-26 11:58:52 +02:00
parent bc740d970e
commit d8ec5254df
7 changed files with 52 additions and 18 deletions

View File

@@ -36,6 +36,12 @@ public class LivreValide {
// 5. Titre : non null et au moins 2 caractères
public static boolean isContenuTitreValide(String titre) {
// TODO Steve: implémenter la validation
return false;
if (titre == null) {
return false;
}
boolean contenuValide = titre.matches(".*[a-zA-Z].*[a-zA-Z].*");
return contenuValide;
}
}