Closed trair18 closed 4 years ago
Override public List<Sportsman> findByWeight(int weight) { List<Sportsman> weightSportsman = new ArrayList<>(); for (Sportsman sportsman : sportsmanList ) { if (sportsman.getWeight() == weight) { weightSportsman.add(sportsman); } } return weightSportsman; }
You should return Coachs!
have done
Override public List<Sportsman> findByWeight(int weight) { List<Sportsman> weightSportsman = new ArrayList<>(); for (Sportsman sportsman : sportsmanList ) { if (sportsman.getWeight() == weight) { weightSportsman.add(sportsman); } } return weightSportsman; }
You should return Coachs!