This is my works code in IDE:
public static int calculateHorsesFinished(List<Horse> horses) throws InterruptedException {
       int finishedCount = 0;
for(Horse horse: horses){
    if(horse.isFinished){
        finishedCount++;
    }else {
        System.out.println("Waiting for " + horse.getName());
        horse.join();
    }
}
Why with isFinished CodeGym doesn't accept? And what is the difference between horse.isFinished and horse.isFinished(). Both work the same in IDE.