APPALOOSA;publicstaticbooleancontains(Stringval){// Loop through all values and check if the string is one of them// https://stackoverflow.com/a/9275694for(ERacerace:values())if(race.name().equals(val))returntrue;returnfalse;}publicstaticStringvaluesToString(){Stringres="";for(ERacerace:values()){res+=race+", ";}// Return the result without the last comma and spacereturnres.substring(0,res.length()-2);}