This commit is contained in:
Qpelu 2025-03-19 10:24:27 +01:00
parent 77931aa547
commit 9019bc95c0
1 changed files with 2 additions and 2 deletions

View File

@ -20,9 +20,9 @@ public class ListeAvis {
br.readLine(); // Ignore l'en-tête br.readLine(); // Ignore l'en-tête
while ((ligne = br.readLine()) != null) { while ((ligne = br.readLine()) != null) {
String[] valeurs = ligne.split(";", 4); // Séparation avec ";" String[] valeurs = ligne.split(";", 4);
// Vérifie que la ligne contient exactement 4 colonnes
if (valeurs.length != 4) { if (valeurs.length != 4) {
System.err.println("Ligne ignorée (format incorrect) : " + ligne); System.err.println("Ligne ignorée (format incorrect) : " + ligne);
continue; continue;