Fargus811 / Competition

0 stars 0 forks source link

class IInMemoryCoachRepository #4

Closed trair18 closed 4 years ago

trair18 commented 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!

Fargus811 commented 4 years ago

have done