dlaczego nie dziala ?
package pl.codegym.task.task07.task0706;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Ulice i domy
*/
public class Solution {
public static void main(String[] args) throws Exception{
int [] tab = new int [15];
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int parzyste = 0;
int nieparzyste = 0;
for(int i=0;i<tab.length;i++)
{
int a = Integer.parseInt(reader.readLine());
tab[i] = a;
if(tab[i]%2==0)
parzyste++;
else
nieparzyste++;
}
if(parzyste < nieparzyste)
System.out.println("Więcej ludzi mieszka w domach o nieparzystych numerach.");
else
System.out.println("Więcej ludzi mieszka w domach o parzystych numerach.");
}
if(parzyste = nieparzyste){
System.out.println("tyle samo.")
}
}