We don't have capacity to stop our thoughts, but we have capacity to change our thoughts from one thing to another. Everyone gets sexual thoughts in their day today life, it is difficult to do every time whenever thought comes. So deviate yourself from those thoughts by spending with close friends& relatives, going to movie, reading books, thinking about future plannings and by meditation...