Erections can happen, especially in pubescent boys, without any reason. If you have one and are trying to hide it, sit down if you can; it might be harder for others to notice. Boys can also wear longer shirts that cover their groin. Wear stiff pants or shorts, which tend to hold the penis in place. Try not to think about having sex; think about a concert you attended or your favorite restaurant, for example. You can untuck your shirt or hold something like a book in front of you. Boys can also put a hand in their pocket to move their penis, so an erection is not as noticeable. If you are wearing a Speedo or other swimsuit, place your towel on your body or go into the water. Going into cold water can make an erection go away.