How did australiA repel Japan's attack World War 2?

Australia was bombed, but invasion and capture was prevented at the Battle of the Coral Sea in which British and American ships aided in defense.