Подскажите пожалуйста почему не принимает валидатор? Все рабочее.
package com.javarush.task.task21.task2113;
import java.util.ArrayList;
import java.util.List;
public class Hippodrome {
static Hippodrome game;
private List<Horse> horses = new ArrayList<>();;
public void Hippodrome(List<Horse> horses){
this.horses = horses;
}
public List<Horse> getHorses() {
return horses;
}
public static void main(String[] args) throws InterruptedException {
game = new Hippodrome();
game.getHorses().add(new Horse("Belka", 3, 0));
game.getHorses().add(new Horse("Strelka", 3, 0));
game.getHorses().add(new Horse("Burka", 3, 0));
game.run();
}
public void run() throws InterruptedException {
for(int i = 0; i < 100; i++){
move();
print();
Thread.sleep(200);
}
}
public void move(){
for (Horse currentHorse: horses) {
currentHorse.move();
}
}
public void print(){
for (Horse currentHorse: horses) {
currentHorse.print();
}
for(int i = 0; i<10; i++){
System.out.println();
}
}
}