What did Captain James Cook discover and name in 1777?

In 1777 James Cook wasn't travelling.

On his third (and last) voyage in January 1778 he discovered Hawaiian Islands. He named them the "Sandwich Islands" after the actual First Lord of the Admiralty, the fourth Earl of Sandwich.