getting over an ex?

What's the best way to get over an ex or to at least stop thinking about him