None of the conditions are validating. I have changed the calls to this.method() and played with the modifiers and error handling, but still no results. Am I missing something or has anyone else dealt with this and fixed it?
package com.codegym.task.task21.task2113;
import java.util.ArrayList;
import java.util.List;
public class Hippodrome {
static Hippodrome game;
public static void main (String[] args) {
game = new Hippodrome(new ArrayList<>());
game.horses.add(new Horse("SeaBiscuit", 3, 0));
game.horses.add(new Horse("BullWinkle", 3, 0));
game.horses.add(new Horse("Rapidash", 3, 0));
}
public Hippodrome(ArrayList<Horse> horses) {
this.horses = horses;
}
private ArrayList<Horse> horses;
void run(){
for (int i = 0; i < 100; i++) {
game.move();
game.print();
try {
Thread.sleep(200);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
void move() {}
void print() {}
public List<Horse> getHorses () {
return horses;
}
}