Merge branch 'master' of https://gitarero.ecam.fr/nicolas.peluchon/D03-HAL2025.git
This commit is contained in:
commit
4b123e1640
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue