Sonar in World War II?

Sonar was used in World War II