my result is correct but i can't pass the test .. let me know my mistakes
package com.codegym.task.task07.task0706;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
/*
Streets and houses
*/
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner sc = new Scanner(System.in);
int[] array = new int[15];
int counte = 0; int counto = 0;
String count = "";
for(int i=0; i<array.length; i++)
{
array[i]=sc.nextInt();
if(array[i] % 2 == 0){
counte +=array[i];}
else
{ counto +=array[i];}
}
System.out.println(counte);
System.out.println(counto);
count = (counte>counto) ? "Even-numbered houses have more residents." : "Odd-numbered houses have more residents." ;
System.out.println(count);
}
}