The Hershey Company announced increases in net sales and earnings for the fourth quarter and full year ending Dec. 31.