When did Captain Cook come across Australia?

Lieutenant James Cook (not yet a captain) first came across Australia in April 1770. He then spent several months charting the east coast, and departed in August of that year.