I'm very lucky in that I was involved in "only" two sexual harassment situations while I was in the military. The first one was my first supervisor telling off-color, sexual jokes. He was very awkward socially, so I really think he was trying to show off and seem cooler than he was. It didn't work. I did complain about him and they assigned someone else to my unit to be in charge of me.
The 2nd I was involved in peripherally. The Commander of my unit (which consisted of 3 of us- me and one other woman) was accused of sexual harassing the other woman in the unit, but I had to be completely honest and say that I didn't see or hear any harassment. I think he must've kept it behind closed doors because, while I 100% believed her, I couldn't lie and say I witnessed any harassement because I didn't. The Commander was also rotated out of my unit and I have no idea what happened to him. In my experience, they tend to just move these offenders around to other units, but it's not actually SOLVING anything. They can go to the next unit and do it to the next person. My husband probably has tons more stories as he worked for the legal department processing court martials, etc, and would read all the depraved things going on. But, this was almost 30 years ago.