i often try to study in free time and avoid gambling, helps resist for a long time too.
I dont think studying is the best remedy against gambling... gambling is fun,whilst studying is not
potentially losing everything you own and throwing your life into ruin isnt exactly fun either. if studying can keep someone away from gambling, great for them, they have something that can keep them away from a harmful habit. if fun is all youre after, just go throw everything you own at the casino, then say its fun again.