Horse[] spaces; /** Returns the index of the space that contains the horse with the specified name. * Precondition: No two horses in the barn have the same name. * @param name the name of the horse to find * @return the index of the space containing the horse with the specified name; * -1 if no horse with the specified name is in the barn. */ public int findHorseSpace(String name){ int out=-1; for(int i=0; i