What are the methods for overcoming masturbation?

How can I overcome my need to masturbate?