Solutions to this problem vary per person. It may or may not have the same effect as to the other but it never hurts to try. I think one of the most effective solutions is to invest on a new hobby (that does not relate or is a far different category to gambling). Once youve invested in that, youll be able to spend more time to that hobby and to yourself. Little youd know, you no longer find yourself gambling.
Yes, there are different solutions for different people like :
1) If a bachelor has got addicted to gambling, he should find a partner. He will be busy spending time with the partner and thus have less time for gambling.
2) If a student is getting addicted to gambling, he should be made to go for things he likes more like gaming to keep his mind occupied.