Where is The Mistake
package com.codegym.task.task21.task2113;
import java.util.*;
public class Hippodrome {
private List<Horse> horses = new ArrayList<>();
public List<Horse> getHorses(){
return horses;
}
public Hippodrome(List<Horse> horses){
this.horses = horses;
}
public static Hippodrome game;
public void run() throws Exception{
for(int i = 1;i <= 100;i++){
move(horses.get(i));
print();
Thread.sleep(200);
}
}
public void move(Horse j){
for (int i = 0;i < horses.size();i++){
move(horses.get(i));
}
}
public void print(){
}
public static void main(String[] args){
List<Horse> horses = new ArrayList<>();
game = new Hippodrome(horses);
horses.add(new Horse("g",3,0));
horses.add(new Horse("gg",3,0));
horses.add(new Horse("ggg",3,0));
}
}