Мне было интересно, как каждый раз при запуске метода именовать новые объекты как-то по-другому
public class Horse extends Animal{
int horsenum = 0;
}
public void reproduce(Horse h){
horsenum ++;
Horse newHorse = new Horse(); //Here is where I would like to name the new horse "newHorse1, newHorse2, etc."