That's an often-repeated and far from conclusive statement used to justify dropping the bomb to gain a temporary (it's crumbling now) international advantage.
Check out Oliver Stone's Untold History [1], or many other history sources for various opinions. There is considerable debate about it.[2]
In reality, the Japanese were on the verge of surrender. The U.S. had badly firebombed Japan, burning hundreds of thousands of people.
Considering that we had to nuke two actual cities to get them to surrender, how many bombs would we have had to drop in the ocean to achieve the same effect?
I don't know about you, but I'd only have to be nuked once before I'd run up the proverbial white flag.