Well I am a Hindu- but I have resisted masturbation for over a year, and still going, so it is about will-power, as well as pleasing God/the holy spirit. I found this a great effort, but I used a good link that helped me understand more about it!!
Control of mind is key in life!!