It seems i'm missing something as always ^^
help me pleeeeease :D
package fr.codegym.task.task07.task0706;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Des rues et des maisons
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader lecteur = new BufferedReader(new InputStreamReader(System.in));
int [] tableau = new int [15];
int pair = 0;
int impair = 0;
for (int i = 0 ; i<tableau.length ; i++) {
String A = lecteur.readLine();
tableau[i] = Integer.parseInt(A);
}
for (int i = 0 ; i<tableau.length ; i++) {
if ( tableau[i] % 2 == 0 || tableau [i] == 0)
pair +=1;
if ( tableau[i] % 2 != 0)
impair += 1;
}
if (pair>impair)
System.out.println("Les maisons à numéro pair ont plus de résidents.");
if (impair>pair)
System.out.println("Les maisons à numéro impair ont plus de résidents.");
}
}