The solution is to tell people to take out their trash and don't leave it behind.
I have been picking up trash on Blacks Beach at least three times a week since 1980. Of course it makes me mad that beachgoers leave their trash behind, but I've never had a problem educating litterers in the errors of their ways.